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

Make non-linked OpenHashSet implementations report `UNORDERED` #250

Closed techsy730 closed 3 years ago

techsy730 commented 3 years ago

This lets the Java stream framework know that the returned Collector does not commit to preserving order, so the pipeline knows it doesn't have to commit to keeping order since the destination is going to scramble order anyways.

Fixes #249

Also fixes some whitespace issues. I finally have a plugin in Eclipse that does some whitespace formatting even for plain text files, so new changes should (hopefully) be less inconsistent with indentation.