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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -