Is there a no-duplicate List implementation out there?

后端 未结 11 698
悲哀的现实
悲哀的现实 2020-11-29 00:53

I know about SortedSet, but in my case I need something that implements List, and not Set. So is there an implementation out there, in the API or e

11条回答
  •  时光说笑
    2020-11-29 00:57

    Why not encapsulate a set with a list, sort like:

    new ArrayList( new LinkedHashSet() )
    

    This leaves the other implementation for someone who is a real master of Collections ;-)

提交回复
热议问题