Creates a new map containing the key/value mappings provided by the
specified HMap
and all the key/value mappings of this map.
Creates a new map containing the key/value mappings provided by the
specified HMap
and all the key/value mappings of this map.
the map to append
a new map containing mappings of this map and those provided by
other
.
Adds a new key/value pair to this map.
Adds a new key/value pair to this map. If the map already contains a mapping for the key, it will be overridden by the new value.
the type of the value in entry
the key-value pair to update
this map.
Retrieves the value which is associated with a given key.
Retrieves the value which is associated with a given key. If the key does
not exist in this map, a NoSuchElementException
is thrown.
the type of the value associated with key
the key to lookup
the value associated with the given key.
Returns a copy of this map.
Returns a copy of this map.
a copy of this map.
a list of key-value pairs present in the map
Applies a function f
to all elements of this map.
Applies a function f
to all elements of this map.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Optionally returns the value associated with a key.
Optionally returns the value associated with a key.
the type of the value associated with key
the key to lookup
an option value containing the value associated with key
in this
map, or None
if none exists.
Returns the value associated with a key, or a default value if the key is not contained in the map.
Returns the value associated with a key, or a default value if the key is not contained in the map.
the type of the value associated with key
the key to lookup
a computation that yields a default value in case no binding
for key
is found in the map
the value associated with key
if it exists, otherwise the result
of the default
computation.
If given key is already in this map, returns associated value.
If given key is already in this map, returns associated value. Otherwise,
computes value from given expression op
, stores with key in map and
returns that value.
the type of the value associated with key
the key to lookup and possibly update
the computation yielding the value to associate with key
, if
key
is previously unbound
the value associated with key (either previously or as a result of executing the method).
Builds a new collection by applying a function to all entries of this map.
Builds a new collection by applying a function to all entries of this map.
the element type of the returned collection
the function to apply to each element
a new collection resulting from applying the given function f
to
each element of this map and collecting the results.
Adds a new key/value pair to this map.
Adds a new key/value pair to this map. If the map already contains a mapping for the key, it will be overridden by the new value.
the type of the value associated with key
the key to update
the new value
this map.
A map containing keys of heterogeneous values. The keys in this map must implement
HMapKey[V]
, whereV
is the type of its associated key.the type of keys used in this map
(Since version 2017/07/13) This will be removed in a future version