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.
map
Modifier and Type | Method and Description |
---|---|
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() |
getSortedMap
containsKey, containsValue, equals, get, getMap, hashCode, isEmpty, size, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsKey, containsValue, equals, get, hashCode, isEmpty, size
public static SortedMap decorate(SortedMap map)
map
- the map to decorate, must not be nullIllegalArgumentException
- if map is nullpublic void clear()
clear
in interface Map
clear
in class AbstractMapDecorator
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMapDecorator
public void putAll(Map mapToCopy)
putAll
in interface Map
putAll
in class AbstractMapDecorator
public Object remove(Object key)
remove
in interface Map
remove
in class AbstractMapDecorator
public Set entrySet()
public Set keySet()
public Collection values()
public Object firstKey()
firstKey
in interface SortedMap
firstKey
in class AbstractSortedMapDecorator
public Object lastKey()
lastKey
in interface SortedMap
lastKey
in class AbstractSortedMapDecorator
public Comparator comparator()
comparator
in interface SortedMap
comparator
in class AbstractSortedMapDecorator
public SortedMap subMap(Object fromKey, Object toKey)
subMap
in interface SortedMap
subMap
in class AbstractSortedMapDecorator
public SortedMap headMap(Object toKey)
headMap
in interface SortedMap
headMap
in class AbstractSortedMapDecorator
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.