Any implementation of Ordered Set in Java?

后端 未结 10 1941
说谎
说谎 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:22

    treeset is an ordered set, but you can't access via an items index, just iterate through or go to beginning/end.

提交回复
热议问题