@GwtIncompatible(value="NavigableSet") static final class Sets.UnmodifiableNavigableSet<E> extends ForwardingSortedSet<E> implements java.util.NavigableSet<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.util.NavigableSet<E> |
delegate |
private Sets.UnmodifiableNavigableSet<E> |
descendingSet |
private static long |
serialVersionUID |
Constructor and Description |
---|
UnmodifiableNavigableSet(java.util.NavigableSet<E> delegate) |
Modifier and Type | Method and Description |
---|---|
E |
ceiling(E e) |
protected java.util.SortedSet<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.Iterator<E> |
descendingIterator() |
java.util.NavigableSet<E> |
descendingSet() |
E |
floor(E e) |
java.util.NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
java.util.NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
java.util.NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
comparator, first, headSet, last, standardContains, standardRemove, standardSubSet, subSet, tailSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.NavigableSet<E> delegate
private transient Sets.UnmodifiableNavigableSet<E> descendingSet
private static final long serialVersionUID
UnmodifiableNavigableSet(java.util.NavigableSet<E> delegate)
protected java.util.SortedSet<E> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingSortedSet<E>
public java.util.NavigableSet<E> descendingSet()
descendingSet
in interface java.util.NavigableSet<E>
public java.util.Iterator<E> descendingIterator()
descendingIterator
in interface java.util.NavigableSet<E>
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface java.util.NavigableSet<E>
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface java.util.NavigableSet<E>