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) |
getSet
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
protected 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 SortedSet
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.