org.apache.commons.collections.map
public final class UnmodifiableMap extends AbstractMapDecorator implements IterableMap, Unmodifiable, Serializable
Map 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() |
| static Map | decorate(Map map)
Factory method to create an unmodifiable map.
|
| Set | entrySet() |
| Set | keySet() |
| MapIterator | mapIterator() |
| Object | put(Object key, Object value) |
| void | putAll(Map mapToCopy) |
| Object | remove(Object key) |
| Collection | values() |
Parameters: map the map to decorate, must not be null
Throws: IllegalArgumentException if map is null