namespace SortedMultiMapHashValue
A type-invariant immutable MultiMap of key type K, and value type V. In the MultiMap, each key has at least one value. See the MultiMap documentation and the SortedMultiMapHashValue API documentation
Companion interface: SortedMultiMapHashValue<K,V>
Interfaces
Name | Description |
---|---|
SortedMultiMapHashValue.Builder<K,V> | A mutable SortedMultiMapHashValue builder used to efficiently create new immutable instances. See the MultiMap documentation and the SortedMultiMapHashValue.Builder API documentation |
SortedMultiMapHashValue.Context<UK,UV> | A context instance for an SortedMultiMapHashValue that acts as a factory for every instance of this type of collection. |
SortedMultiMapHashValue.NonEmpty<K,V> | A non-empty type-invariant immutable MultiMap of key type K, and value type V. In the MultiMap, each key has at least one value. See the MultiMap documentation and the SortedMultiMapHashValue API documentation |
SortedMultiMapHashValue.Types | Utility interface that provides higher-kinded types for this collection. |
Static Methods
builder
Returns an empty builder instance for this type of collection and context.
builder
createContext
Returns a new SortedMultiMapHashValue context instance based on the given options
.
createContext
options
.defaultContext
Returns the default context for SortedMultiMapHashValue.
defaultContext
empty
Returns the (singleton) empty instance of this type and context with given key and value types.
empty
from
Returns an immutable multimap of this type and context, containing the entries in the given source
StreamSource
.
from
source
StreamSource
.of
Returns an immutable multimap of this collection type and context, containing the given entries
.
of
entries
.reducer
Returns a Reducer
that adds received tuples to a MultiMap and returns the MultiMap as a result. When a source
is given, the reducer will first create a MultiMap from the source, and then add tuples to it.
reducer
Reducer
that adds received tuples to a MultiMap and returns the MultiMap as a result. When a source
is given, the reducer will first create a MultiMap from the source, and then add tuples to it.