Any implementation of Ordered Set in Java?

后端 未结 10 1933
说谎
说谎 2020-12-01 09:00

If anybody is familiar with Objective-C there is a collection called NSOrderedSet that acts as Set and its items can be accessed as an Array

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 09:10

    TreeSet is ordered.

    http://docs.oracle.com/javase/6/docs/api/java/util/TreeSet.html

提交回复
热议问题