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 anotherNavigableSetto provide additional behaviour.Methods are forwarded directly to the decorated set.
- Since:
- 4.1
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eceiling(E e)Iterator<E>descendingIterator()NavigableSet<E>descendingSet()Efloor(E e)NavigableSet<E>headSet(E toElement, boolean inclusive)Ehigher(E e)Elower(E e)EpollFirst()EpollLast()NavigableSet<E>subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)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, size, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
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
-
-
-
-
Method Detail
-
lower
public E lower(E e)
- Specified by:
lowerin interfaceNavigableSet<E>
-
floor
public E floor(E e)
- Specified by:
floorin interfaceNavigableSet<E>
-
ceiling
public E ceiling(E e)
- Specified by:
ceilingin interfaceNavigableSet<E>
-
higher
public E higher(E e)
- Specified by:
higherin interfaceNavigableSet<E>
-
pollFirst
public E pollFirst()
- Specified by:
pollFirstin interfaceNavigableSet<E>
-
pollLast
public E pollLast()
- Specified by:
pollLastin interfaceNavigableSet<E>
-
descendingSet
public NavigableSet<E> descendingSet()
- Specified by:
descendingSetin interfaceNavigableSet<E>
-
descendingIterator
public Iterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfaceNavigableSet<E>
-
subSet
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSetin interfaceNavigableSet<E>
-
headSet
public NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSetin interfaceNavigableSet<E>
-
tailSet
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
- Specified by:
tailSetin interfaceNavigableSet<E>
-
-