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
ModifierConstructorDescriptionprotected
Constructor only used in deserialization, do not use otherwise.protected
Constructor 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, tailSet
Methods inherited from class org.apache.commons.collections4.set.AbstractSetDecorator
equals, hashCode
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.NavigableSet
headSet, iterator, subSet, tailSet
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
Methods 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
- Specified by:
ceiling
in interfaceNavigableSet<E>
-
decorated
Gets the set being decorated.- Overrides:
decorated
in classAbstractSortedSetDecorator<E>
- Returns:
- the decorated set
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<E>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<E>
-
floor
- Specified by:
floor
in interfaceNavigableSet<E>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<E>
-
higher
- Specified by:
higher
in interfaceNavigableSet<E>
-
lower
- Specified by:
lower
in interfaceNavigableSet<E>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<E>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<E>
-
subSet
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<E>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<E>
-