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 TypeMethodDescriptionvoidclear()Deprecated.Deprecated.static SortedMapDeprecated.Factory method to create an unmodifiable sorted map.entrySet()Deprecated.firstKey()Deprecated.Deprecated.keySet()Deprecated.lastKey()Deprecated.Deprecated.voidDeprecated.Deprecated.Deprecated.Deprecated.values()Deprecated.Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
containsKey, containsValue, equals, get, hashCode, isEmpty, size, toStringMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, sizeMethods 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:
clearin interfaceMap- Overrides:
clearin classAbstractMapDecorator
-
put
Deprecated.- Specified by:
putin interfaceMap- Overrides:
putin classAbstractMapDecorator
-
putAll
Deprecated.- Specified by:
putAllin interfaceMap- Overrides:
putAllin classAbstractMapDecorator
-
remove
Deprecated.- Specified by:
removein interfaceMap- Overrides:
removein classAbstractMapDecorator
-
entrySet
Deprecated. -
keySet
Deprecated. -
values
Deprecated. -
firstKey
Deprecated.- Specified by:
firstKeyin interfaceSortedMap- Overrides:
firstKeyin classAbstractSortedMapDecorator
-
lastKey
Deprecated.- Specified by:
lastKeyin interfaceSortedMap- Overrides:
lastKeyin classAbstractSortedMapDecorator
-
comparator
Deprecated.- Specified by:
comparatorin interfaceSortedMap- Overrides:
comparatorin classAbstractSortedMapDecorator
-
subMap
Deprecated.- Specified by:
subMapin interfaceSortedMap- Overrides:
subMapin classAbstractSortedMapDecorator
-
headMap
Deprecated.- Specified by:
headMapin interfaceSortedMap- Overrides:
headMapin classAbstractSortedMapDecorator
-
tailMap
Deprecated.- Specified by:
tailMapin interfaceSortedMap- Overrides:
tailMapin classAbstractSortedMapDecorator
-