Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/bimultimap/custom/index.ts>BiMultiMapBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class BiMultiMapBuilder
implements [BiMultiMapBase.Builder]<K, V, Tp>
Re-export
import { BiMultiMapBuilder } from "https://deno.land/x/rimbu@1.1.0/bimultimap/custom/index.ts";

Constructors

new
BiMultiMapBuilder(context: TpG["context"], source?: TpG["nonEmpty"])

Type Parameters

K
V
Tp extends ContextTypesImpl
optional
TpG extends WithKeyValue<Tp, K, V> = WithKeyValue<Tp, K, V>

Properties

optional
_keyValueMultiMap: MultiMap.Builder<K, V>
_lock: number
optional
_valueKeyMultiMap: MultiMap.Builder<V, K>
add: (key: K, value: V) => boolean
addEntries: (entries: StreamSource<readonly [K, V]>) => boolean
build: () => WithKeyValue<Tp, K, V>["normal"]
forEach: (f: (
entry: [K, V],
index: number,
halt: () => void,
) => void
, options?: { state?: TraverseState; }
) => void
getKeys: <UV = V>(value: RelatedTo<V, UV>) => WithKeyValue<Tp, K, V>["valueMultiMapValues"]
getValues: <UK = K>(key: RelatedTo<K, UK>) => WithKeyValue<Tp, K, V>["keyMultiMapValues"]
hasEntry: <UK = K, UV = V>(key: RelatedTo<K, UK>, value: RelatedTo<V, UV>) => boolean
hasKey: <UK = K>(key: RelatedTo<K, UK>) => boolean
hasValue: <UV = V>(value: RelatedTo<V, UV>) => boolean
readonly
isEmpty: boolean
readonly
keyValueMultiMap: MultiMap.Builder<K, V>
removeEntries: <UK = K, UV = V>(entries: StreamSource<[RelatedTo<K, UK>, RelatedTo<V, UV>]>) => boolean
removeEntry: <UK = K, UV = V>(key: RelatedTo<K, UK>, value: RelatedTo<V, UV>) => boolean
removeKey: <UK = K>(key: RelatedTo<K, UK>) => boolean
removeKeys: <UK = K>(keys: StreamSource<RelatedTo<K, UK>>) => boolean
removeValue: <UV = V>(value: RelatedTo<V, UV>) => boolean
removeValues: <UV = V>(values: StreamSource<RelatedTo<V, UV>>) => boolean
setKeys: (value: V, keys: StreamSource<K>) => boolean
setValues: (key: K, values: StreamSource<V>) => boolean
readonly
size: number
readonly
valueKeyMultiMap: MultiMap.Builder<V, K>