E
- the type of the elements in the navigable setjava.lang.Iterable<E>
, java.util.Collection<E>
, java.util.NavigableSet<E>
, java.util.Set<E>
, java.util.SortedSet<E>
UnmodifiableNavigableSet
public abstract class AbstractNavigableSetDecorator<E> extends AbstractSortedSetDecorator<E> implements java.util.NavigableSet<E>
NavigableSet
to provide additional behaviour.
Methods are forwarded directly to the decorated set.
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractNavigableSetDecorator() |
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractNavigableSetDecorator(java.util.NavigableSet<E> set) |
Constructor that wraps (not copies).
|
Modifier and Type | Method | Description |
---|---|---|
E |
ceiling(E e) |
|
protected java.util.NavigableSet<E> |
decorated() |
Gets the set being decorated.
|
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) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toString
equals, hashCode
comparator, first, headSet, last, subSet, tailSet
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected AbstractNavigableSetDecorator()
protected AbstractNavigableSetDecorator(java.util.NavigableSet<E> set)
set
- the set to decorate, must not be nulljava.lang.NullPointerException
- if set is nullprotected java.util.NavigableSet<E> decorated()
decorated
in class AbstractSortedSetDecorator<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>
Copyright © 2001-2019 - Apache Software Foundation