V - the element typepublic class SortedSet<V> extends SortedCollection<V> implements Set<V>
This allows for the ordering of a set of items where some are less or greater than others, while others are simply not comparable in an ordering sense (in which case, 0 is returned from their comparison).
This class is thread-safe, with the same caveats for ConcurrentSkipListMap.
ordering| Constructor and Description |
|---|
SortedSet(Collection<? extends V> c,
Ordering<V> ordering) |
SortedSet(Ordering<V> ordering) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
mustAdd(V item) |
add, addAll, clear, contains, containsAll, first, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic SortedSet(Collection<? extends V> c, Ordering<V> ordering)
c - the collection to initialize this sorted setordering - the ordering used to sort this setprotected boolean mustAdd(V item)
mustAdd in class SortedCollection<V>Copyright © 2016 Glasnost. All rights reserved.