- 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:
java.util.Map<K,V>
- Direct Known Subclasses:
HashPMap
,IntTreePMap
,OrderedPMap
,TreePMap
public abstract class AbstractUnmodifiableMap<K,V> extends java.util.AbstractMap<K,V>
A subclass of AbstractMap that overrides the various mutator methods to mark them as deprecated and unconditionally throw UnsupportedOperationException.- Since:
- 3.2.0
-
-
Constructor Summary
Constructors Constructor Description AbstractUnmodifiableMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.Unsupported operation.V
compute(K k, java.util.function.BiFunction<? super K,? super V,? extends V> function)
Deprecated.Unsupported operation.V
computeIfAbsent(K k, java.util.function.Function<? super K,? extends V> function)
Deprecated.Unsupported operation.V
computeIfPresent(K k, java.util.function.BiFunction<? super K,? super V,? extends V> function)
Deprecated.Unsupported operation.V
merge(K k, V v, java.util.function.BiFunction<? super V,? super V,? extends V> function)
Deprecated.Unsupported operation.V
put(K k, V v)
Deprecated.Unsupported operation.void
putAll(java.util.Map<? extends K,? extends V> map)
Deprecated.Unsupported operation.V
putIfAbsent(K k, V v)
Deprecated.Unsupported operation.V
remove(java.lang.Object o)
Deprecated.Unsupported operation.V
replace(K k, V v)
Deprecated.Unsupported operation.void
replaceAll(java.util.function.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
-
-
-
-
Method Detail
-
clear
@Deprecated public void clear()
Deprecated.Unsupported operation.
-
compute
@Deprecated public V compute(K k, java.util.function.BiFunction<? super K,? super V,? extends V> function)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
computeIfAbsent
@Deprecated public V computeIfAbsent(K k, java.util.function.Function<? super K,? extends V> function)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
computeIfPresent
@Deprecated public V computeIfPresent(K k, java.util.function.BiFunction<? super K,? super V,? extends V> function)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
merge
@Deprecated public V merge(K k, V v, java.util.function.BiFunction<? super V,? super V,? extends V> function)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
putAll
@Deprecated public void putAll(java.util.Map<? extends K,? extends V> map)
Deprecated.Unsupported operation.
-
putIfAbsent
@Deprecated public V putIfAbsent(K k, V v)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
remove
@Deprecated public V remove(java.lang.Object o)
Deprecated.Unsupported operation.
-
replace
@Deprecated public V replace(K k, V v)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
-