I find ConcurrentSkipListSet in Java Collection Framework, which is backed up with a skip list. But is there a skip list in Java? A set does not work in my use case. I need a in
When you create a ConcurrentSkipListSet, you pass a comparator to the constructor.
ConcurrentSkipListSet
new ConcurrentSkipListSet<>(new ExampleComparator()); public class ExampleComparator implements Comparator {//your impl }
You could create a comparator that will make your SkipListSet behave as a normal List.
SkipListSet