vigna / fastutil

fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
Apache License 2.0
1.76k stars 196 forks source link

The Collectors of Hash based data structures should report `UNORDERED` #249

Closed techsy730 closed 3 years ago

techsy730 commented 3 years ago

The Collectors of hash based data structures should report UNORDERED. That can let the Stream framework know some optimizations are safe. It would know it doesn't need to take pains to maintain order as the thing it is collecting to doesn't maintain order anyways.

Pretty much only means the hash maps, except for the linked ones.

vigna commented 3 years ago

A PR? :)

techsy730 commented 3 years ago

Yes, just that today I was busy and didn't get around to this, so wanted to remind myself