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:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.NavigableSet<E>,java.util.Set<E>,java.util.SortedSet<E>
- Direct Known Subclasses:
UnmodifiableNavigableSet
public abstract class AbstractNavigableSetDecorator<E> extends AbstractSortedSetDecorator<E> implements java.util.NavigableSet<E>
Decorates anotherNavigableSetto provide additional behaviour.Methods are forwarded directly to the decorated set.
- Since:
- 4.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNavigableSetDecorator()Constructor only used in deserialization, do not use otherwise.protectedAbstractNavigableSetDecorator(java.util.NavigableSet<E> set)Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eceiling(E e)protected java.util.NavigableSet<E>decorated()Gets the set being decorated.java.util.Iterator<E>descendingIterator()java.util.NavigableSet<E>descendingSet()Efloor(E e)java.util.NavigableSet<E>headSet(E toElement, boolean inclusive)Ehigher(E e)Elower(E e)EpollFirst()EpollLast()java.util.NavigableSet<E>subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)java.util.NavigableSet<E>tailSet(E fromElement, boolean inclusive)-
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
-
-
-
-
Constructor Detail
-
AbstractNavigableSetDecorator
protected AbstractNavigableSetDecorator()
Constructor only used in deserialization, do not use otherwise.
-
AbstractNavigableSetDecorator
protected AbstractNavigableSetDecorator(java.util.NavigableSet<E> set)
Constructor that wraps (not copies).- Parameters:
set- the set to decorate, must not be null- Throws:
java.lang.NullPointerException- if set is null
-
-
Method Detail
-
decorated
protected java.util.NavigableSet<E> decorated()
Gets the set being decorated.- Overrides:
decoratedin classAbstractSortedSetDecorator<E>- Returns:
- the decorated set
-
descendingSet
public java.util.NavigableSet<E> descendingSet()
- Specified by:
descendingSetin interfacejava.util.NavigableSet<E>
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfacejava.util.NavigableSet<E>
-
subSet
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSetin interfacejava.util.NavigableSet<E>
-
headSet
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSetin interfacejava.util.NavigableSet<E>
-
-