public final class UnmodifiableSortedMap extends AbstractSortedMapDecorator implements Unmodifiable, java.io.Serializable
SortedMap
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.util.Comparator |
comparator() |
static java.util.SortedMap |
decorate(java.util.SortedMap map)
Factory method to create an unmodifiable sorted map.
|
java.util.Set |
entrySet() |
java.lang.Object |
firstKey() |
java.util.SortedMap |
headMap(java.lang.Object toKey) |
java.util.Set |
keySet() |
java.lang.Object |
lastKey() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map mapToCopy) |
java.lang.Object |
remove(java.lang.Object key) |
java.util.SortedMap |
subMap(java.lang.Object fromKey,
java.lang.Object toKey) |
java.util.SortedMap |
tailMap(java.lang.Object fromKey) |
java.util.Collection |
values() |
containsKey, containsValue, equals, get, hashCode, isEmpty, size, toString
public static java.util.SortedMap decorate(java.util.SortedMap map)
map
- the map to decorate, must not be nulljava.lang.IllegalArgumentException
- if map is nullpublic void clear()
clear
in interface java.util.Map
clear
in class AbstractMapDecorator
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class AbstractMapDecorator
public void putAll(java.util.Map mapToCopy)
putAll
in interface java.util.Map
putAll
in class AbstractMapDecorator
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class AbstractMapDecorator
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in interface java.util.SortedMap
entrySet
in class AbstractMapDecorator
public java.util.Set keySet()
keySet
in interface java.util.Map
keySet
in interface java.util.SortedMap
keySet
in class AbstractMapDecorator
public java.util.Collection values()
values
in interface java.util.Map
values
in interface java.util.SortedMap
values
in class AbstractMapDecorator
public java.lang.Object firstKey()
firstKey
in interface java.util.SortedMap
firstKey
in class AbstractSortedMapDecorator
public java.lang.Object lastKey()
lastKey
in interface java.util.SortedMap
lastKey
in class AbstractSortedMapDecorator
public java.util.Comparator comparator()
comparator
in interface java.util.SortedMap
comparator
in class AbstractSortedMapDecorator
public java.util.SortedMap subMap(java.lang.Object fromKey, java.lang.Object toKey)
subMap
in interface java.util.SortedMap
subMap
in class AbstractSortedMapDecorator
public java.util.SortedMap headMap(java.lang.Object toKey)
headMap
in interface java.util.SortedMap
headMap
in class AbstractSortedMapDecorator
public java.util.SortedMap tailMap(java.lang.Object fromKey)
tailMap
in interface java.util.SortedMap
tailMap
in class AbstractSortedMapDecorator
Copyright © 2010 - 2020 Adobe. All Rights Reserved