Package org.pcollections
Interface PMap<K,V>
- Type Parameters:
K
-V
-
- All Superinterfaces:
Map<K,
V>
- All Known Subinterfaces:
PSortedMap<K,
V>
- All Known Implementing Classes:
HashPMap
,IntTreePMap
,TreePMap
An immutable, persistent map from non-null keys of type K to non-null values of type V.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.minusAll
(Collection<?> keys) Deprecated.void
Deprecated.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
- non-nullvalue
- non-null- 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.
-