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() |
getSortedMapcontainsKey, containsValue, equals, get, getMap, hashCode, isEmpty, size, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsKey, containsValue, equals, get, hashCode, isEmpty, sizepublic static SortedMap decorate(SortedMap map)
map - the map to decorate, must not be nullIllegalArgumentException - if map is nullpublic void clear()
clear in interface Mapclear in class AbstractMapDecoratorpublic Object put(Object key, Object value)
put in interface Mapput in class AbstractMapDecoratorpublic void putAll(Map mapToCopy)
putAll in interface MapputAll in class AbstractMapDecoratorpublic Object remove(Object key)
remove in interface Mapremove in class AbstractMapDecoratorpublic Set entrySet()
public Set keySet()
public Collection values()
public Object firstKey()
firstKey in interface SortedMapfirstKey in class AbstractSortedMapDecoratorpublic Object lastKey()
lastKey in interface SortedMaplastKey in class AbstractSortedMapDecoratorpublic Comparator comparator()
comparator in interface SortedMapcomparator in class AbstractSortedMapDecoratorpublic SortedMap subMap(Object fromKey, Object toKey)
subMap in interface SortedMapsubMap in class AbstractSortedMapDecoratorpublic SortedMap headMap(Object toKey)
headMap in interface SortedMapheadMap in class AbstractSortedMapDecoratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.