java - Collection that will maintain insertion order and no duplicates -


this question has answer here:

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

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

jquery - Perform action in series -