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) |
getSet
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
protected 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.SortedSet
public java.util.SortedSet headSet(java.lang.Object toElement)
headSet
in interface java.util.SortedSet
public java.util.SortedSet tailSet(java.lang.Object fromElement)
tailSet
in interface java.util.SortedSet
public java.lang.Object first()
first
in interface java.util.SortedSet
public java.lang.Object last()
last
in interface java.util.SortedSet
public java.util.Comparator comparator()
comparator
in interface java.util.SortedSet
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.