T - the type of elements maintained by this Collectionpublic interface ObjectSortedSet<T> extends ObjectSet<T>, java.util.SortedSet<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(T o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(T o)
A customized add method that allows you to insert into the last index.
|
java.util.Comparator<T> |
comparator()
A Type Specific Comparator method
|
ObjectSortedSet<T> |
headSet(T toElement) |
ObjectBidirectionalIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
ObjectBidirectionalIterator<T> |
iterator(T fromElement)
A type Specific Iterator starting from a given key
|
boolean |
moveToFirst(T o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(T o)
A specific move method to move a given key to the last index.
|
T |
pollFirst()
A method to get and remove the first element in the set
|
T |
pollLast()
A method to get and remove the last element in the set
|
default ObjectSplititerator<T> |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
ObjectSortedSet<T> |
subSet(T fromElement,
T toElement) |
ObjectSortedSet<T> |
tailSet(T fromElement) |
addAll, containsAll, containsAny, containsAny, removeAll, retainAllboolean addAndMoveToFirst(T o)
o - the element that should be insertedSet.add(Object)boolean addAndMoveToLast(T o)
o - the element that should be insertedSet.add(Object)boolean moveToFirst(T o)
o - that should be moved to the first indexboolean moveToLast(T o)
o - that should be moved to the first lastjava.util.Comparator<T> comparator()
comparator in interface java.util.SortedSet<T>ObjectBidirectionalIterator<T> iterator()
ObjectCollectioniterator in interface java.util.Collection<T>iterator in interface java.lang.Iterable<T>iterator in interface ObjectCollection<T>iterator in interface ObjectIterable<T>iterator in interface ObjectSet<T>iterator in interface java.util.Set<T>Collection.iterator()ObjectBidirectionalIterator<T> iterator(T fromElement)
fromElement - the element the iterator should start fromjava.util.NoSuchElementException - if fromElement isn't founddefault ObjectSplititerator<T> spliterator()
spliterator in interface java.util.Collection<T>spliterator in interface java.lang.Iterable<T>spliterator in interface ObjectCollection<T>spliterator in interface ObjectIterable<T>spliterator in interface ObjectSet<T>spliterator in interface java.util.Set<T>spliterator in interface java.util.SortedSet<T>T pollFirst()
T pollLast()
ObjectSortedSet<T> subSet(T fromElement, T toElement)
subSet in interface java.util.SortedSet<T>ObjectSortedSet<T> headSet(T toElement)
headSet in interface java.util.SortedSet<T>ObjectSortedSet<T> tailSet(T fromElement)
tailSet in interface java.util.SortedSet<T>