E - the type of the elements in the navigable setpublic abstract class AbstractNavigableSetDecorator<E> extends AbstractSortedSetDecorator<E> implements NavigableSet<E>
NavigableSet to provide additional behaviour.
Methods are forwarded directly to the decorated set.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNavigableSetDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractNavigableSetDecorator(NavigableSet<E> set)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E e) |
protected NavigableSet<E> |
decorated()
Gets the set being decorated.
|
Iterator<E> |
descendingIterator() |
NavigableSet<E> |
descendingSet() |
E |
floor(E e) |
NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
comparator, first, headSet, last, subSet, tailSetequals, hashCodeadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitheadSet, iterator, subSet, tailSetcomparator, first, last, spliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streamprotected AbstractNavigableSetDecorator()
protected AbstractNavigableSetDecorator(NavigableSet<E> set)
set - the set to decorate, must not be nullNullPointerException - if set is nullprotected NavigableSet<E> decorated()
decorated in class AbstractSortedSetDecorator<E>public E lower(E e)
lower in interface NavigableSet<E>public E floor(E e)
floor in interface NavigableSet<E>public E ceiling(E e)
ceiling in interface NavigableSet<E>public E higher(E e)
higher in interface NavigableSet<E>public E pollFirst()
pollFirst in interface NavigableSet<E>public E pollLast()
pollLast in interface NavigableSet<E>public NavigableSet<E> descendingSet()
descendingSet in interface NavigableSet<E>public Iterator<E> descendingIterator()
descendingIterator in interface NavigableSet<E>public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet in interface NavigableSet<E>public NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet in interface NavigableSet<E>public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet in interface NavigableSet<E>Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.