2

Can I somehow define the iteration order of the elements from Trove's TIntHashSet ?

Or are any other primitive Set that allows for defining the order of iteration of elements. I want to iterate the elements in the insertion order or just same order as of the array that was used for construction of set.

Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294

1 Answers1

0

See java.util.LinkedHashMap, it preserve insertion order.