public abstract class AbstractSortedSetDecorator extends AbstractSetDecorator implements java.util.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(java.util.Set set)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator |
comparator() |
java.lang.Object |
first() |
protected java.util.SortedSet |
getSortedSet()
Gets the sorted set being decorated.
|
java.util.SortedSet |
headSet(java.lang.Object toElement) |
java.lang.Object |
last() |
java.util.SortedSet |
subSet(java.lang.Object fromElement,
java.lang.Object toElement) |
java.util.SortedSet |
tailSet(java.lang.Object fromElement) |
getSetadd, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected AbstractSortedSetDecorator()
protected AbstractSortedSetDecorator(java.util.Set set)
set - the set to decorate, must not be nulljava.lang.IllegalArgumentException - if set is nullprotected java.util.SortedSet getSortedSet()
public java.util.SortedSet subSet(java.lang.Object fromElement,
java.lang.Object toElement)
subSet in interface java.util.SortedSetpublic java.util.SortedSet headSet(java.lang.Object toElement)
headSet in interface java.util.SortedSetpublic java.util.SortedSet tailSet(java.lang.Object fromElement)
tailSet in interface java.util.SortedSetpublic java.lang.Object first()
first in interface java.util.SortedSetpublic java.lang.Object last()
last in interface java.util.SortedSetpublic java.util.Comparator comparator()
comparator in interface java.util.SortedSetCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.