@GwtIncompatible static class Sets.DescendingSet<E> extends ForwardingNavigableSet<E>
ForwardingNavigableSet.StandardDescendingSet
Modifier and Type | Field and Description |
---|---|
private java.util.NavigableSet<E> |
forward |
Constructor and Description |
---|
DescendingSet(java.util.NavigableSet<E> forward) |
Modifier and Type | Method and Description |
---|---|
E |
ceiling(E e) |
java.util.Comparator<? super E> |
comparator() |
protected java.util.NavigableSet<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.Iterator<E> |
descendingIterator() |
java.util.NavigableSet<E> |
descendingSet() |
E |
first() |
E |
floor(E e) |
java.util.SortedSet<E> |
headSet(E toElement) |
java.util.NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
java.util.Iterator<E> |
iterator() |
E |
last() |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
private static <T> Ordering<T> |
reverse(java.util.Comparator<T> forward) |
java.util.NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
java.util.SortedSet<E> |
tailSet(E fromElement) |
java.util.NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
java.lang.String |
toString()
Returns the string representation generated by the delegate's
toString method. |
standardCeiling, standardFirst, standardFloor, standardHeadSet, standardHigher, standardLast, standardLower, standardPollFirst, standardPollLast, standardSubSet, standardSubSet, standardTailSet
standardContains, standardRemove
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.NavigableSet<E> forward
DescendingSet(java.util.NavigableSet<E> forward)
protected java.util.NavigableSet<E> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingNavigableSet<E>
public E lower(E e)
lower
in interface java.util.NavigableSet<E>
lower
in class ForwardingNavigableSet<E>
public E floor(E e)
floor
in interface java.util.NavigableSet<E>
floor
in class ForwardingNavigableSet<E>
public E ceiling(E e)
ceiling
in interface java.util.NavigableSet<E>
ceiling
in class ForwardingNavigableSet<E>
public E higher(E e)
higher
in interface java.util.NavigableSet<E>
higher
in class ForwardingNavigableSet<E>
public E pollFirst()
pollFirst
in interface java.util.NavigableSet<E>
pollFirst
in class ForwardingNavigableSet<E>
public E pollLast()
pollLast
in interface java.util.NavigableSet<E>
pollLast
in class ForwardingNavigableSet<E>
public java.util.NavigableSet<E> descendingSet()
descendingSet
in interface java.util.NavigableSet<E>
descendingSet
in class ForwardingNavigableSet<E>
public java.util.Iterator<E> descendingIterator()
descendingIterator
in interface java.util.NavigableSet<E>
descendingIterator
in class ForwardingNavigableSet<E>
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface java.util.NavigableSet<E>
subSet
in class ForwardingNavigableSet<E>
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface java.util.NavigableSet<E>
headSet
in class ForwardingNavigableSet<E>
public java.util.NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet
in interface java.util.NavigableSet<E>
tailSet
in class ForwardingNavigableSet<E>
public java.util.Comparator<? super E> comparator()
comparator
in interface java.util.SortedSet<E>
comparator
in class ForwardingSortedSet<E>
private static <T> Ordering<T> reverse(java.util.Comparator<T> forward)
public E first()
first
in interface java.util.SortedSet<E>
first
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> headSet(E toElement)
headSet
in interface java.util.NavigableSet<E>
headSet
in interface java.util.SortedSet<E>
headSet
in class ForwardingSortedSet<E>
public E last()
last
in interface java.util.SortedSet<E>
last
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface java.util.NavigableSet<E>
subSet
in interface java.util.SortedSet<E>
subSet
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> tailSet(E fromElement)
tailSet
in interface java.util.NavigableSet<E>
tailSet
in interface java.util.SortedSet<E>
tailSet
in class ForwardingSortedSet<E>
public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.Set<E>
toArray
in class ForwardingCollection<E>
public <T> T[] toArray(T[] array)
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.Set<E>
toArray
in class ForwardingCollection<E>
public java.lang.String toString()
ForwardingObject
toString
method.toString
in class ForwardingObject