Returns the value associated with a key.
Returns the value associated with a key. If the key does not exist, a
NotFound
exception is thrown.
the key to lookup
the value associated with the given key.
Tests if this map contains a given key.
Tests if this map contains a given key.
the key to test for membership
true
if the map contains the given key, false
otherwise.
Returns a copy of this map.
Returns a copy of this map.
a copy of this map.
Applies a function f
to all entries of this map.
Applies a function f
to all entries of this map.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Returns the value associated with a key or None
if the key does not
exist.
Returns the value associated with a key or None
if the key does not
exist.
the key to lookup
the value associated with the given key wrapped in a Some
if this
map contains the key, None
otherwise.
Returns the value associated with a key or a default value if the key does not exist.
Returns the value associated with a key or a default value if the key does not exist.
the key to lookup
the value to return if this map does not contain the given key
the value associated with the given key if this map contains the
key, default
otherwise.
If given key is already in this map, returns associated value.
If given key is already in this map, returns associated value. Otherwise, stores the given default value with key in map and returns that value.
the key to lookup
the value to associate with key, if key is previously unbound.
the value associated with the given key if this map contains the
key, default
otherwise.
Returns the number of entries in this map.
Returns the number of entries in this map.
the number of entries in this map.
Builds a new list by applying a function to all entries of this map.
Builds a new list by applying a function to all entries of this map.
the type of the elements in the returned list
the function to apply to each element
a new list resulting from applying the given function f
to each
element of this map and collecting the results.
Removes a key from this map.
Removes a key from this map. If the key does not exist, this method does nothing.
the key to remove
Updates the value of a key.
Updates the value of a key. If the key does not exist, it is added to the map.
the key to update
the value to assign to the given key
An hash map optimized for performance, not incurring in boxing while storing primitive values.
the type of the keys
the type of the values