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, toStringpublic 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.Mapclear in class AbstractMapDecoratorpublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class AbstractMapDecoratorpublic void putAll(java.util.Map mapToCopy)
putAll in interface java.util.MapputAll in class AbstractMapDecoratorpublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class AbstractMapDecoratorpublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in interface java.util.SortedMapentrySet in class AbstractMapDecoratorpublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in interface java.util.SortedMapkeySet in class AbstractMapDecoratorpublic java.util.Collection values()
values in interface java.util.Mapvalues in interface java.util.SortedMapvalues in class AbstractMapDecoratorpublic java.lang.Object firstKey()
firstKey in interface java.util.SortedMapfirstKey in class AbstractSortedMapDecoratorpublic java.lang.Object lastKey()
lastKey in interface java.util.SortedMaplastKey in class AbstractSortedMapDecoratorpublic java.util.Comparator comparator()
comparator in interface java.util.SortedMapcomparator in class AbstractSortedMapDecoratorpublic java.util.SortedMap subMap(java.lang.Object fromKey,
java.lang.Object toKey)
subMap in interface java.util.SortedMapsubMap in class AbstractSortedMapDecoratorpublic java.util.SortedMap headMap(java.lang.Object toKey)
headMap in interface java.util.SortedMapheadMap in class AbstractSortedMapDecoratorpublic java.util.SortedMap tailMap(java.lang.Object fromKey)
tailMap in interface java.util.SortedMaptailMap in class AbstractSortedMapDecoratorCopyright © 2010 - 2023 Adobe. All Rights Reserved