java - Collection that will maintain insertion order and no duplicates -
this question has answer here:
- any implementation of ordered set in java? 10 answers
in java collection collection doesn't allow duplicates , preserve insertion order of data?
linkedhashset as per documentation
this implementation differs hashset in maintains doubly-linked list running through of entries. linked list defines iteration ordering, order in elements inserted set (insertion-order)
Comments
Post a Comment