RefDoubleHashMap
Mutable reference to double map based on open-addressing. Primary use-case is computing an aggregate double value based on a key.
Value parameters
- capacity
-
Initial capacity guideline. The actual size of the underlying buffer will be the next prime >=
capacity
. Default is 10.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Add amount
to the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Add amount
to the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Attributes
Execute f
for each item in the set.
Execute f
for each item in the set.
Attributes
Get the value associated with key, k
. If no value is present, then the dflt
value will be returned.
Get the value associated with key, k
. If no value is present, then the dflt
value will be returned.
Attributes
Apply a mapping function f
and converts the result to an array.
Apply a mapping function f
and converts the result to an array.
Attributes
Compute max amount
and the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Compute max amount
and the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Attributes
Compute min amount
and the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Compute min amount
and the value associated with k
. If the key is not already in the map a new entry will be created with a value of amount
.
Attributes
Put a ref to integer pair into the map. The key, k
, should not be equivalent to the noData
value used for this map. If an entry with the same key already exists, then the value will be overwritten.
Put a ref to integer pair into the map. The key, k
, should not be equivalent to the noData
value used for this map. If an entry with the same key already exists, then the value will be overwritten.
Attributes
Put ref to integer pair into the map if there is not already a mapping for k
. Returns true if the value was inserted into the map.
Put ref to integer pair into the map if there is not already a mapping for k
. Returns true if the value was inserted into the map.
Attributes
Return the number of items in the set. This is a constant time operation.
Return the number of items in the set. This is a constant time operation.
Attributes
Converts this set to a Map[T, Int]. Used mostly for debugging and tests.
Converts this set to a Map[T, Int]. Used mostly for debugging and tests.