SortedSet to provide additional behaviour.
Methods are forwarded directly to the decorated set.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractSortedSetDecorator(final Set<E>
the set to decorate, must not be null set)Constructor that wraps (not copies). |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements java. null if this set uses the natural ordering of its elements.
|
| protected SortedSet | Returns: the decorated setOverrides org. |
| public E | first()
Implements java. |
| public SortedSet | headSet(final E
high endpoint (exclusive) of the returned set toElement)Implements java. toElement.
|
| public E | last()
Implements java. |
| public SortedSet | subSet(final E
low endpoint (inclusive) of the returned set fromElement, final E high endpoint (exclusive) of the returned set toElement)Implements java. fromElement, inclusive, to toElement,
exclusive.
|
| public SortedSet | tailSet(final E
low endpoint (inclusive) of the returned set fromElement)Implements java. fromElement.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization version | |
| AbstractSortedSetDecorator | back to summary |
|---|---|
| protected AbstractSortedSetDecorator() Constructor only used in deserialization, do not use otherwise.
| |
| AbstractSortedSetDecorator | back to summary |
|---|---|
| protected AbstractSortedSetDecorator(final Set<E> set) Constructor that wraps (not copies).
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the elements in this set,
or
| |
| decorated | back to summary |
|---|---|
| protected SortedSet Overrides org. Gets the set being decorated. | |
| first | back to summary |
|---|---|
| public E first() Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| headSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
strictly less than The returned set will throw an | |
| last | back to summary |
|---|---|
| public E last() Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| subSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range
from The returned set will throw an | |
| tailSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
greater than or equal to The returned set will throw an | |