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 java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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.void
Deprecated.Unsupported operation.putIfAbsent
(K k, V v) Deprecated.Unsupported operation.Deprecated.Unsupported operation.Deprecated.Unsupported operation.void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
forEach, getOrDefault, remove, replace
-
Constructor Details
-
AbstractUnmodifiableMap
public AbstractUnmodifiableMap()
-
-
Method Details
-
clear
Deprecated.Unsupported operation.- Specified by:
clear
in interfaceMap<K,
V> - Overrides:
clear
in 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:
put
in interfaceMap<K,
V> - Overrides:
put
in classAbstractMap<K,
V> - Throws:
UnsupportedOperationException
- always
-
putAll
Deprecated.Unsupported operation.- Specified by:
putAll
in interfaceMap<K,
V> - Overrides:
putAll
in classAbstractMap<K,
V> - Throws:
UnsupportedOperationException
- always
-
putIfAbsent
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-
remove
Deprecated.Unsupported operation.- Specified by:
remove
in interfaceMap<K,
V> - Overrides:
remove
in classAbstractMap<K,
V> - Throws:
UnsupportedOperationException
- always
-
replace
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-
replaceAll
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-