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: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| 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