public abstract class AbstractSortedSetDecorator extends AbstractSetDecorator implements SortedSet
SortedSet to provide additional behaviour.
Methods are forwarded directly to the decorated set.
collection| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSortedSetDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSortedSetDecorator(Set set)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
Comparator |
comparator() |
Object |
first() |
protected SortedSet |
getSortedSet()
Gets the sorted set being decorated.
|
SortedSet |
headSet(Object toElement) |
Object |
last() |
SortedSet |
subSet(Object fromElement,
Object toElement) |
SortedSet |
tailSet(Object fromElement) |
getSetadd, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringprotected AbstractSortedSetDecorator()
protected AbstractSortedSetDecorator(Set set)
set - the set to decorate, must not be nullIllegalArgumentException - if set is nullprotected SortedSet getSortedSet()
public Comparator comparator()
comparator in interface SortedSetCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.