org.apache.commons.collections.map
public final class UnmodifiableSortedMap extends AbstractSortedMapDecorator implements Unmodifiable, Serializable
SortedMap
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
Method Summary | |
---|---|
void | clear() |
Comparator | comparator() |
static SortedMap | decorate(SortedMap map)
Factory method to create an unmodifiable sorted map.
|
Set | entrySet() |
Object | firstKey() |
SortedMap | headMap(Object toKey) |
Set | keySet() |
Object | lastKey() |
Object | put(Object key, Object value) |
void | putAll(Map mapToCopy) |
Object | remove(Object key) |
SortedMap | subMap(Object fromKey, Object toKey) |
SortedMap | tailMap(Object fromKey) |
Collection | values() |
Parameters: map the map to decorate, must not be null
Throws: IllegalArgumentException if map is null