E
- the type of the elements in the navigable setpublic 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 and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serialization version
|
Modifier | Constructor and 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 and 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) |
comparator, first, headSet, last, subSet, tailSet
equals, hashCode
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
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>