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:
java.io.Serializable,java.util.Map,java.util.SortedMap,Unmodifiable
@Deprecated(since="2021-04-30") public final class UnmodifiableSortedMap extends AbstractSortedMapDecorator implements Unmodifiable, java.io.Serializable
Deprecated.Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.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.java.util.Comparatorcomparator()Deprecated.static java.util.SortedMapdecorate(java.util.SortedMap map)Deprecated.Factory method to create an unmodifiable sorted map.java.util.SetentrySet()Deprecated.java.lang.ObjectfirstKey()Deprecated.java.util.SortedMapheadMap(java.lang.Object toKey)Deprecated.java.util.SetkeySet()Deprecated.java.lang.ObjectlastKey()Deprecated.java.lang.Objectput(java.lang.Object key, java.lang.Object value)Deprecated.voidputAll(java.util.Map mapToCopy)Deprecated.java.lang.Objectremove(java.lang.Object key)Deprecated.java.util.SortedMapsubMap(java.lang.Object fromKey, java.lang.Object toKey)Deprecated.java.util.SortedMaptailMap(java.lang.Object fromKey)Deprecated.java.util.Collectionvalues()Deprecated.-
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
containsKey, containsValue, equals, get, hashCode, isEmpty, size, toString
-
-
-
-
Method Detail
-
decorate
public static java.util.SortedMap decorate(java.util.SortedMap map)
Deprecated.Factory method to create an unmodifiable sorted map.- Parameters:
map- the map to decorate, must not be null- Throws:
java.lang.IllegalArgumentException- if map is null
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfacejava.util.Map- Overrides:
clearin classAbstractMapDecorator
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)Deprecated.- Specified by:
putin interfacejava.util.Map- Overrides:
putin classAbstractMapDecorator
-
putAll
public void putAll(java.util.Map mapToCopy)
Deprecated.- Specified by:
putAllin interfacejava.util.Map- Overrides:
putAllin classAbstractMapDecorator
-
remove
public java.lang.Object remove(java.lang.Object key)
Deprecated.- Specified by:
removein interfacejava.util.Map- Overrides:
removein classAbstractMapDecorator
-
entrySet
public java.util.Set entrySet()
Deprecated.- Specified by:
entrySetin interfacejava.util.Map- Specified by:
entrySetin interfacejava.util.SortedMap- Overrides:
entrySetin classAbstractMapDecorator
-
keySet
public java.util.Set keySet()
Deprecated.- Specified by:
keySetin interfacejava.util.Map- Specified by:
keySetin interfacejava.util.SortedMap- Overrides:
keySetin classAbstractMapDecorator
-
values
public java.util.Collection values()
Deprecated.- Specified by:
valuesin interfacejava.util.Map- Specified by:
valuesin interfacejava.util.SortedMap- Overrides:
valuesin classAbstractMapDecorator
-
firstKey
public java.lang.Object firstKey()
Deprecated.- Specified by:
firstKeyin interfacejava.util.SortedMap- Overrides:
firstKeyin classAbstractSortedMapDecorator
-
lastKey
public java.lang.Object lastKey()
Deprecated.- Specified by:
lastKeyin interfacejava.util.SortedMap- Overrides:
lastKeyin classAbstractSortedMapDecorator
-
comparator
public java.util.Comparator comparator()
Deprecated.- Specified by:
comparatorin interfacejava.util.SortedMap- Overrides:
comparatorin classAbstractSortedMapDecorator
-
subMap
public java.util.SortedMap subMap(java.lang.Object fromKey, java.lang.Object toKey)Deprecated.- Specified by:
subMapin interfacejava.util.SortedMap- Overrides:
subMapin classAbstractSortedMapDecorator
-
headMap
public java.util.SortedMap headMap(java.lang.Object toKey)
Deprecated.- Specified by:
headMapin interfacejava.util.SortedMap- Overrides:
headMapin classAbstractSortedMapDecorator
-
tailMap
public java.util.SortedMap tailMap(java.lang.Object fromKey)
Deprecated.- Specified by:
tailMapin interfacejava.util.SortedMap- Overrides:
tailMapin classAbstractSortedMapDecorator
-
-