Class AbstractUnmodifiableMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.pcollections.AbstractUnmodifiableMap<K,V>
- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
HashPMap, IntTreePMap, OrderedPMap, TreePMap
A subclass of AbstractMap that overrides the various mutator methods to mark them as deprecated
and unconditionally throw UnsupportedOperationException.
- Since:
- 3.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.Unsupported operation.Deprecated.Unsupported operation.computeIfAbsent(K k, Function<? super K, ? extends V> function) Deprecated.Unsupported operation.computeIfPresent(K k, BiFunction<? super K, ? super V, ? extends V> function) Deprecated.Unsupported operation.Deprecated.Unsupported operation.Deprecated.Unsupported operation.voidDeprecated.Unsupported operation.putIfAbsent(K k, V v) Deprecated.Unsupported operation.Deprecated.Unsupported operation.Deprecated.Unsupported operation.voidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) Deprecated.Unsupported operation.Methods inherited from class AbstractMap
clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, valuesMethods inherited from interface Map
forEach, getOrDefault, remove, replace
-
Constructor Details
-
AbstractUnmodifiableMap
public AbstractUnmodifiableMap()
-
-
Method Details
-
clear
Deprecated.Unsupported operation.- Specified by:
clearin interfaceMap<K,V> - Overrides:
clearin classAbstractMap<K,V> - Throws:
UnsupportedOperationException- always
-
compute
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
computeIfAbsent
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
computeIfPresent
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
merge
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
put
Deprecated.Unsupported operation.- Specified by:
putin interfaceMap<K,V> - Overrides:
putin classAbstractMap<K,V> - Throws:
UnsupportedOperationException- always
-
putAll
Deprecated.Unsupported operation.- Specified by:
putAllin interfaceMap<K,V> - Overrides:
putAllin classAbstractMap<K,V> - Throws:
UnsupportedOperationException- always
-
putIfAbsent
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
remove
Deprecated.Unsupported operation.- Specified by:
removein interfaceMap<K,V> - Overrides:
removein classAbstractMap<K,V> - Throws:
UnsupportedOperationException- always
-
replace
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
replaceAll
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-