interface HashMap.Context<UK>
A context instance for a HashMap
that acts as a factory for every instance of this type of collection.
Extends: RMapBase.Context<UK,Tp>
Type parameters
Name | Description |
---|---|
UK | the upper key type bound for which the context can be used |
Properties
_fixedKeyType
undocumented
_fixedKeyType
_types
undocumented
_types
eq
An Eq
instance used to check key equivalence.
eq
Eq
instance used to check key equivalence.hasher
A Hasher
instance used to hash the map keys.
hasher
Hasher
instance used to hash the map keys.typeTag
undocumented
typeTag
Methods
builder
Returns an empty builder instance for this type of collection and context.
builder
empty
Returns the (singleton) empty instance of this type and context with given key and value types.
empty
from
Returns an immutable map of this type and context, containing the entries in the given sources
StreamSource
instances.
from
sources
StreamSource
instances.isValidKey
Returns true if given obj
could be a valid key in this Context.
isValidKey
obj
could be a valid key in this Context.merge
Returns a Map containing the common keys from this map and all the given sources
key-value stream sources, and as values tuples of all the corresponding values for each common key. If a source doesn't have a key, the key will be skipped.
merge
sources
key-value stream sources, and as values tuples of all the corresponding values for each common key. If a source doesn't have a key, the key will be skipped.mergeAll
Returns a Map containing all keys from this map and all the given sources
key-value stream sources, and as values tuples of all the corresponding values for each key. If a source doesn't have a key, the tuple will be filled with the given fillValue
.
mergeAll
sources
key-value stream sources, and as values tuples of all the corresponding values for each key. If a source doesn't have a key, the tuple will be filled with the given fillValue
.mergeAllWith
Returns a Map containing all keys from this map and all the given sources
key-value stream sources, and as values the result of applying the given mergeFun
to the key and all the corresponding values for each key. If a source doesn't have a key, the given tuple will be filled with the given fillValue
.
mergeAllWith
sources
key-value stream sources, and as values the result of applying the given mergeFun
to the key and all the corresponding values for each key. If a source doesn't have a key, the given tuple will be filled with the given fillValue
.mergeWith
Returns a Map containing the common keys from this map and all the given sources
key-value stream sources, and as values the result of applying given mergeFun
to the key and values of all the corresponding values for each common key. If a source doesn't have a key, the key will be skipped.
mergeWith
sources
key-value stream sources, and as values the result of applying given mergeFun
to the key and values of all the corresponding values for each common key. If a source doesn't have a key, the key will be skipped.of
Returns an immutable map of this collection type and context, containing the given entries
.
of
entries
.reducer
Returns a Reducer
that adds received tuples to an RMap and returns the RMap as a result. When a source
is given, the reducer will first create an RMap from the source, and then add tuples to it.
reducer
Reducer
that adds received tuples to an RMap and returns the RMap as a result. When a source
is given, the reducer will first create an RMap from the source, and then add tuples to it.