Class UnmodifiableSortedMap
- java.lang.Object
-
- org.apache.commons.collections.map.AbstractMapDecorator
-
- org.apache.commons.collections.map.AbstractSortedMapDecorator
-
- org.apache.commons.collections.map.UnmodifiableSortedMap
-
- All Implemented Interfaces:
Serializable,Map,SortedMap,Unmodifiable
@Deprecated(since="2021-04-30") public final class UnmodifiableSortedMap extends AbstractSortedMapDecorator implements Unmodifiable, Serializable
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Decorates anotherSortedMapto ensure it can't be altered.This class is Serializable from Commons Collections 3.1.
- Since:
- Commons Collections 3.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Comparatorcomparator()Deprecated.static SortedMapdecorate(SortedMap map)Deprecated.Factory method to create an unmodifiable sorted map.SetentrySet()Deprecated.ObjectfirstKey()Deprecated.SortedMapheadMap(Object toKey)Deprecated.SetkeySet()Deprecated.ObjectlastKey()Deprecated.Objectput(Object key, Object value)Deprecated.voidputAll(Map mapToCopy)Deprecated.Objectremove(Object key)Deprecated.SortedMapsubMap(Object fromKey, Object toKey)Deprecated.SortedMaptailMap(Object fromKey)Deprecated.Collectionvalues()Deprecated.-
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
containsKey, containsValue, equals, get, hashCode, isEmpty, size, toString
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, size
-
-
-
-
Method Detail
-
decorate
public static SortedMap decorate(SortedMap map)
Deprecated.Factory method to create an unmodifiable sorted map.- Parameters:
map- the map to decorate, must not be null- Throws:
IllegalArgumentException- if map is null
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceMap- Overrides:
clearin classAbstractMapDecorator
-
put
public Object put(Object key, Object value)
Deprecated.- Specified by:
putin interfaceMap- Overrides:
putin classAbstractMapDecorator
-
putAll
public void putAll(Map mapToCopy)
Deprecated.- Specified by:
putAllin interfaceMap- Overrides:
putAllin classAbstractMapDecorator
-
remove
public Object remove(Object key)
Deprecated.- Specified by:
removein interfaceMap- Overrides:
removein classAbstractMapDecorator
-
entrySet
public Set entrySet()
Deprecated.
-
keySet
public Set keySet()
Deprecated.
-
values
public Collection values()
Deprecated.
-
firstKey
public Object firstKey()
Deprecated.- Specified by:
firstKeyin interfaceSortedMap- Overrides:
firstKeyin classAbstractSortedMapDecorator
-
lastKey
public Object lastKey()
Deprecated.- Specified by:
lastKeyin interfaceSortedMap- Overrides:
lastKeyin classAbstractSortedMapDecorator
-
comparator
public Comparator comparator()
Deprecated.- Specified by:
comparatorin interfaceSortedMap- Overrides:
comparatorin classAbstractSortedMapDecorator
-
subMap
public SortedMap subMap(Object fromKey, Object toKey)
Deprecated.- Specified by:
subMapin interfaceSortedMap- Overrides:
subMapin classAbstractSortedMapDecorator
-
headMap
public SortedMap headMap(Object toKey)
Deprecated.- Specified by:
headMapin interfaceSortedMap- Overrides:
headMapin classAbstractSortedMapDecorator
-
-