@Beta protected class ForwardingNavigableSet.StandardDescendingSet extends ForwardingNavigableSet<E>
NavigableSet.descendingSet() in terms of the other methods of
NavigableSet, notably including
NavigableSet.descendingIterator() .
In many cases, you may wish to override ForwardingNavigableSet to forward to this implementation or a subclass thereof.
ForwardingNavigableSet.StandardDescendingSet | Constructor and Description |
|---|
StandardDescendingSet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E e)
|
Comparator |
comparator()
|
protected NavigableSet |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
Iterator |
descendingIterator()
|
NavigableSet |
descendingSet()
|
E |
first()
|
E |
floor(E e)
|
SortedSet |
headSet(E toElement)
|
NavigableSet |
headSet(E toElement, boolean inclusive)
|
E |
higher(E e)
|
Iterator |
iterator()
|
E |
last()
|
E |
lower(E e)
|
E |
pollFirst()
|
E |
pollLast()
|
NavigableSet |
subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
|
SortedSet |
subSet(E fromElement, E toElement)
|
SortedSet |
tailSet(E fromElement)
|
NavigableSet |
tailSet(E fromElement, boolean inclusive)
|
Object |
toArray()
|
<T> T[] |
toArray(T[] array)
|
String |
toString()
Returns the string representation generated by the delegate's
toString method.
|
standardCeiling, standardFirst, standardFloor, standardHeadSet, standardHigher, standardLast, standardLower, standardPollFirst, standardPollLast, standardSubSet, standardSubSet, standardTailSetstandardContains, standardRemoveequals, hashCode, standardEquals, standardHashCode, standardRemoveAlladd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, sizeparallelStream, removeIf, streampublic StandardDescendingSet()
protected NavigableSet<E> delegate()
ForwardingObject
ForwardingSet.delegate() . Concrete subclasses override this method to supply the instance being decorated.
public E lower(E e)
public E floor(E e)
public E ceiling(E e)
public E higher(E e)
public E pollFirst()
public E pollLast()
public NavigableSet<E> descendingSet()
public Iterator<E> descendingIterator()
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
public NavigableSet<E> headSet(E toElement, boolean inclusive)
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
public Comparator<? super E> comparator()
public E first()
public SortedSet<E> headSet(E toElement)
public E last()
public SortedSet<E> subSet(E fromElement, E toElement)
public SortedSet<E> tailSet(E fromElement)
public Iterator<E> iterator()
public Object[] toArray()
public <T> T[] toArray(T[] array)
public StringtoString()
ForwardingObject
toString method.