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
,SequencedMap
,SortedMap
,Unmodifiable
@Deprecated(since="2021-04-30")
public final class UnmodifiableSortedMap
extends AbstractSortedMapDecorator
implements Unmodifiable, 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 another
SortedMap
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
- Since:
- Commons Collections 3.0
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.Deprecated.static SortedMap
Deprecated.Factory method to create an unmodifiable sorted map.entrySet()
Deprecated.firstKey()
Deprecated.Deprecated.keySet()
Deprecated.lastKey()
Deprecated.Deprecated.void
Deprecated.Deprecated.Deprecated.Deprecated.values()
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
Methods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Method Details
-
decorate
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:
clear
in interfaceMap
- Overrides:
clear
in classAbstractMapDecorator
-
put
Deprecated.- Specified by:
put
in interfaceMap
- Overrides:
put
in classAbstractMapDecorator
-
putAll
Deprecated.- Specified by:
putAll
in interfaceMap
- Overrides:
putAll
in classAbstractMapDecorator
-
remove
Deprecated.- Specified by:
remove
in interfaceMap
- Overrides:
remove
in classAbstractMapDecorator
-
entrySet
Deprecated. -
keySet
Deprecated. -
values
Deprecated. -
firstKey
Deprecated.- Specified by:
firstKey
in interfaceSortedMap
- Overrides:
firstKey
in classAbstractSortedMapDecorator
-
lastKey
Deprecated.- Specified by:
lastKey
in interfaceSortedMap
- Overrides:
lastKey
in classAbstractSortedMapDecorator
-
comparator
Deprecated.- Specified by:
comparator
in interfaceSortedMap
- Overrides:
comparator
in classAbstractSortedMapDecorator
-
subMap
Deprecated.- Specified by:
subMap
in interfaceSortedMap
- Overrides:
subMap
in classAbstractSortedMapDecorator
-
headMap
Deprecated.- Specified by:
headMap
in interfaceSortedMap
- Overrides:
headMap
in classAbstractSortedMapDecorator
-
tailMap
Deprecated.- Specified by:
tailMap
in interfaceSortedMap
- Overrides:
tailMap
in classAbstractSortedMapDecorator
-