org.apache.commons.collections.set
Class AbstractSortedSetDecorator
- Collection, Set, SortedSet
public abstract class AbstractSortedSetDecorator
implements SortedSet
Decorates another
SortedSet to provide additional behaviour.
Methods are forwarded directly to the decorated set.
Version:
- Stephen Colebourne
- Commons Collections 3.0
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
AbstractSortedSetDecorator
protected AbstractSortedSetDecorator()
Constructor only used in deserialization, do not use otherwise.
- Commons Collections 3.1
AbstractSortedSetDecorator
protected AbstractSortedSetDecorator(Set set)
Constructor that wraps (not copies).
set - the set to decorate, must not be null
comparator
public Comparator comparator()
first
public Object first()
getSortedSet
protected SortedSet getSortedSet()
Gets the sorted set being decorated.
- the decorated set
headSet
public SortedSet headSet(Object toElement)
subSet
public SortedSet subSet(Object fromElement,
Object toElement)
tailSet
public SortedSet tailSet(Object fromElement)
Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.