java.lang.Object | +--org.apache.commons.collections.map.AbstractMapDecorator | +--org.apache.commons.collections.map.TransformedMap | +--org.apache.commons.collections.map.TransformedSortedMapAll Implemented Interfaces:
TransformedSortedMap(SortedMap map, Transformer keyTransformer, Transformer valueTransformer) Constructor that wraps (not copies). |
Comparator | |
static SortedMap | decorate(SortedMap map, Transformer keyTransformer, Transformer valueTransformer) Factory method to create a transforming sorted map. |
Object | firstKey() |
SortedMap | Gets the map being decorated. |
SortedMap | headMap(Object toKey) |
Object | lastKey() |
SortedMap | subMap(Object fromKey, Object toKey) |
SortedMap | tailMap(Object fromKey) |
protected TransformedSortedMap(SortedMap map, Transformer keyTransformer, Transformer valueTransformer)
- if the map is nullpublic Comparator comparator()
public static SortedMap decorate(SortedMap map, Transformer keyTransformer, Transformer valueTransformer)
- if the map is nullpublic Object firstKey()
protected SortedMap getSortedMap()
public SortedMap headMap(Object toKey)
public Object lastKey()
public SortedMap subMap(Object fromKey, Object toKey)
public SortedMap tailMap(Object fromKey)
SortedMap
to transform objects that are added. The Map put methods and Map.Entry setValue method 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.