Skip to main content

interface BiMultiMapGeneric.Creators

The BiMultiMap generic creators interface used to construct BiMultiMap contexts.

Methods

createContext

Returns a new BiMultiMap context instance based on the given options.

Definition

createContext<UK, UV>(options: {
      keyValueMultiMapContext: MultiMap.Context<UK, UV>;
      valueKeyMultiMapContext: MultiMap.Context<UV, UK>;
    }): BiMultiMap.Context<UK, UV>;

Type parameters

NameDescription
UKthe upper key type for which the context can create instances
UVthe upper value type for which the context can create instances

Parameters

NameTypeDescription
options{
      keyValueMultiMapContext: MultiMap.Context<UK, UV>;
      valueKeyMultiMapContext: MultiMap.Context<UV, UK>;
    }
an object containing the following properties:
- keyValueMultiMapContext: the MultiMap context to use for key to value multimaps
- valueKeyMultiMapContext: the MultiMap context to use for value to key multimaps