java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.collection.TransformedCollection | +--org.apache.commons.collections.set.TransformedSet | +--org.apache.commons.collections.set.TransformedSortedSetAll Implemented Interfaces:
TransformedSortedSet(SortedSet set, Transformer transformer) Constructor that wraps (not copies). |
Comparator | |
static SortedSet | decorate(SortedSet set, Transformer transformer) Factory method to create a transforming sorted set. |
Object | first() |
SortedSet | Gets the decorated set. |
SortedSet | headSet(Object toElement) |
Object | last() |
SortedSet | subSet(Object fromElement, Object toElement) |
SortedSet | tailSet(Object fromElement) |
protected TransformedSortedSet(SortedSet set, Transformer transformer)
- if set or transformer is nullpublic Comparator comparator()
public static SortedSet decorate(SortedSet set, Transformer transformer)
- if set or transformer is nullpublic Object first()
protected SortedSet getSortedSet()
public SortedSet headSet(Object toElement)
public Object last()
public SortedSet subSet(Object fromElement, Object toElement)
public SortedSet tailSet(Object fromElement)
SortedSet
to transform objects that are added. The add methods are affected by this class. Thus objects must be removed or searched for using their transformed form. For example, if the transformation converts Strings to Integers, you must use the Integer form to remove objects.