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 |
private java.util.SortedSet<E> |
unmodifiableDelegate |
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) |
void |
forEach(java.util.function.Consumer<? super E> action) |
java.util.NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
E |
lower(E e) |
java.util.stream.Stream<E> |
parallelStream() |
E |
pollFirst() |
E |
pollLast() |
boolean |
removeIf(java.util.function.Predicate<? super E> filter) |
java.util.stream.Stream<E> |
stream() |
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
private final java.util.NavigableSet<E> delegate
private final java.util.SortedSet<E> unmodifiableDelegate
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 boolean removeIf(java.util.function.Predicate<? super E> filter)
removeIf
in interface java.util.Collection<E>
public java.util.stream.Stream<E> stream()
stream
in interface java.util.Collection<E>
public java.util.stream.Stream<E> parallelStream()
parallelStream
in interface java.util.Collection<E>
public void forEach(java.util.function.Consumer<? super E> action)
forEach
in interface java.lang.Iterable<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>