Class AbstractNavigableSetDecorator<E>
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections4.set.AbstractSetDecorator<E>
org.apache.commons.collections4.set.AbstractSortedSetDecorator<E>
org.apache.commons.collections4.set.AbstractNavigableSetDecorator<E>
- Type Parameters:
E- the type of the elements in the navigable set
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,NavigableSet<E>,Set<E>,SortedSet<E>
- Direct Known Subclasses:
UnmodifiableNavigableSet
public abstract class AbstractNavigableSetDecorator<E>
extends AbstractSortedSetDecorator<E>
implements NavigableSet<E>
Decorates another
NavigableSet to provide additional behavior.
Methods are forwarded directly to the decorated set.
- Since:
- 4.1
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor only used in deserialization, do not use otherwise.protectedConstructor that wraps (not copies). -
Method Summary
Modifier and TypeMethodDescriptionprotected NavigableSet<E> Gets the set being decorated.pollLast()Methods inherited from class org.apache.commons.collections4.set.AbstractSortedSetDecorator
comparator, first, headSet, last, subSet, tailSetMethods inherited from class org.apache.commons.collections4.set.AbstractSetDecorator
equals, hashCodeMethods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.NavigableSet
headSet, iterator, subSet, tailSetMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
comparator, first, last, spliterator
-
Constructor Details
-
AbstractNavigableSetDecorator
protected AbstractNavigableSetDecorator()Constructor only used in deserialization, do not use otherwise.
-
-
Method Details
-
ceiling
-
decorated
Gets the set being decorated.- Overrides:
decoratedin classAbstractSortedSetDecorator<E>- Returns:
- the decorated set
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<E>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<E>
-
floor
-
headSet
- Specified by:
headSetin interfaceNavigableSet<E>
-
higher
-
lower
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<E>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<E>
-
subSet
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSetin interfaceNavigableSet<E>
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<E>
-