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.
$Revision: 1.4 $ $Date: 2004/06/02 21:53:03 $
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.
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.
headSet
public SortedSet headSet(Object toElement)
subSet
public SortedSet subSet(Object fromElement,
Object toElement)
tailSet
public SortedSet tailSet(Object fromElement)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.