Skip to main content

class HashMapCollisionBuilder<K,V>

undocumented

Type parameters

NameDescription
Kundocumented
Vundocumented

Properties

_entries

undocumented

Definition

_entries?: undefined | List.Builder<readonly [K, V]>;

context

undocumented

Definition

readonly context: HashMapContext<K>;

source

undocumented

Definition

source?: undefined | HashMapCollision<K, V>;

Methods

addEntryInternal

undocumented

Definition

addEntryInternal(entry: readonly [K, V]): boolean;

Parameters

NameTypeDescription
entryreadonly [K, V]

buildMapValues

undocumented

Definition

buildMapValues<V2>(f: (value: V, key: K) => V2): HashMap<K, V2>;

Type parameters

NameDescription
V2

Parameters

NameTypeDescription
f(value: V, key: K) => V2

buildNE

undocumented

Definition

buildNE(): HashMapCollision<K, V>;

get

undocumented

Definition

get<UK, O>(key: RelatedTo<K, UK>, otherwise?: OptLazy<O>, hash?: number): V | O;

Type parameters

NameDescription
UK
O

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
otherwiseOptLazy<O>
hashnumber

modifyAt

undocumented

Definition

modifyAt(atKey: K, options: {
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: ((currentEntry: V, remove: Token) => V |Token)| V;
  }): boolean;

Parameters

NameTypeDescription
atKeyK
options{
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: ((currentEntry: V, remove: Token) => V |Token)| V;
  }

set

undocumented

Definition

set(key: K, value: V): boolean;

Parameters

NameTypeDescription
keyK
valueV