E - the type of the elements in the sorted setjava.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>, java.util.SortedSet<E>AbstractNavigableSetDecorator, UnmodifiableSortedSetpublic abstract class AbstractSortedSetDecorator<E> extends AbstractSetDecorator<E> implements java.util.SortedSet<E>
SortedSet to provide additional behaviour.
Methods are forwarded directly to the decorated set.
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractSortedSetDecorator() |
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSortedSetDecorator(java.util.Set<E> set) |
Constructor that wraps (not copies).
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Comparator<? super E> |
comparator() |
|
protected java.util.SortedSet<E> |
decorated() |
Gets the set being decorated.
|
E |
first() |
|
java.util.SortedSet<E> |
headSet(E toElement) |
|
E |
last() |
|
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
|
java.util.SortedSet<E> |
tailSet(E fromElement) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toStringequals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected AbstractSortedSetDecorator()
protected AbstractSortedSetDecorator(java.util.Set<E> set)
set - the set to decorate, must not be nulljava.lang.NullPointerException - if set is nullprotected java.util.SortedSet<E> decorated()
decorated in class AbstractSetDecorator<E>public java.util.SortedSet<E> subSet(E fromElement, E toElement)
subSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> headSet(E toElement)
headSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> tailSet(E fromElement)
tailSet in interface java.util.SortedSet<E>Copyright © 2001-2019 - Apache Software Foundation