- Type Parameters:
K-V-
- All Superinterfaces:
Map<K,V>
- All Known Subinterfaces:
PSortedMap<K,V>
- All Known Implementing Classes:
HashPMap,IntTreePMap,OrderedPMap,TreePMap
An immutable, persistent map from keys of type K to values of type V.
Some implementations may not support null keys and/or values, in which case they will throw
NullPointerException for attempts to add such keys/values.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.minusAll(Collection<?> keys) Deprecated.voidDeprecated.Deprecated.Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Method Details
-
plus
- Parameters:
key-value-- Returns:
- a map with the mappings of this but with key mapped to value
-
plusAll
- Parameters:
map-- Returns:
- this combined with map, with map's mappings used for any keys in both map and this
-
minus
- Parameters:
key-- Returns:
- a map with the mappings of this but with no value for key
-
minusAll
- Parameters:
keys-- Returns:
- a map with the mappings of this but with no value for any element of keys
-
put
Deprecated. -
remove
Deprecated. -
putAll
Deprecated. -
clear
Deprecated.
-