Skip to main content

abstract class HashMapNonEmptyBase<K,V>

undocumented

Extends: NonEmptyBase<E>

Implements: HashMap.NonEmpty<K,V>

Extended by: HashMapBlock<K,V>, HashMapCollision<K,V>

Type parameters

NameDescription
Kundocumented
Vundocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: HashMap.NonEmpty<K, V>;

Overrides

NonEmptyBase._NonEmptyType

context

undocumented

Definition

abstract get context(): HashMapContext<K>;

Overrides

RMapBase.context

isEmpty

undocumented

Definition

get isEmpty(): false;

Overrides

NonEmptyBase.isEmptyNonEmpty.isEmpty

size

undocumented

Definition

abstract get size(): number;

Overrides

VariantMapBase.size

Methods

[Symbol.iterator]

undocumented

addEntries

undocumented

Definition

addEntries(entries: StreamSource<readonly [K, V]>): HashMap.NonEmpty<K, V>;

Parameters

NameTypeDescription
entriesStreamSource<readonly [K, V]>

Overrides

NonEmpty.addEntries

addEntry

undocumented

Definition

abstract addEntry(entry: readonly [K, V], hash?: number): HashMap.NonEmpty<K, V>;

Parameters

NameTypeDescription
entryreadonly [K, V]
hashnumber

Overrides

RMapBase.addEntry

asNormal

undocumented

Definition

asNormal(): this;

Overrides

NonEmptyBase.asNormal, NonEmpty.asNormal

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): this;

Overrides

NonEmptyBase.assumeNonEmpty, NonEmpty.assumeNonEmpty

filter

undocumented

Definition

filter(pred: (entry: readonly [K, V], index: number, halt: () => void) => boolean, options?: {
    negate?: boolean;
  }): HashMap<K, V>;

Parameters

NameTypeDescription
pred(entry: readonly [K, V], index: number, halt: () => void) => boolean
options{
    negate?: boolean;
  }

Overrides

VariantMapBase.filter

forEach

undocumented

Definition

abstract forEach(f: (entry: readonly [K, V], index: number, halt: () => void) => void, options?: {
    state?: TraverseState;
  }): void;

Parameters

NameTypeDescription
f(entry: readonly [K, V], index: number, halt: () => void) => void
options{
    state?: TraverseState;
  }

Overrides

VariantMapBase.forEach

get

undocumented

Definition

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

Type parameters

NameDescription
UK
O

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
otherwiseOptLazy<O>

Overrides

VariantMapBase.get

hasKey

undocumented

Definition

hasKey<U>(key: RelatedTo<K, U>): boolean;

Type parameters

NameDescription
U

Parameters

NameTypeDescription
keyRelatedTo<K, U>

Overrides

VariantMapBase.hasKey

mapValues

undocumented

Definition

abstract mapValues<V2>(mapFun: (value: V, key: K) => V2): HashMap.NonEmpty<K, V2>;

Type parameters

NameDescription
V2

Parameters

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

Overrides

NonEmpty.mapValues

modifyAt

undocumented

Definition

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

Parameters

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

Overrides

RMapBase.modifyAt

nonEmpty

undocumented

Definition

nonEmpty(): this is this['_NonEmptyType'];

Overrides

NonEmptyBase.nonEmpty, NonEmpty.nonEmpty

removeKey

undocumented

Definition

removeKey<UK>(key: RelatedTo<K, UK>): HashMap<K, V>;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKey

removeKeyAndGet

undocumented

Definition

removeKeyAndGet<UK>(key: RelatedTo<K, UK>): [HashMap<K, V>, V] | undefined;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKeyAndGet

removeKeys

undocumented

Definition

removeKeys<UK>(keys: StreamSource<RelatedTo<K, UK>>): HashMap<K, V>;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keysStreamSource<RelatedTo<K, UK>>

Overrides

VariantMapBase.removeKeys

set

undocumented

Definition

set(key: K, value: V): HashMap.NonEmpty<K, V>;

Parameters

NameTypeDescription
keyK
valueV

Overrides

RMapBase.set

stream

undocumented

Definition

abstract stream(): Stream.NonEmpty<E>;

Overrides

NonEmptyBase.stream, NonEmpty.stream

streamKeys

undocumented

Definition

streamKeys(): Stream.NonEmpty<K>;

Overrides

NonEmpty.streamKeys

streamValues

undocumented

Definition

streamValues(): Stream.NonEmpty<V>;

Overrides

NonEmpty.streamValues

toArray

undocumented

Definition

abstract toArray(): ArrayNonEmpty<readonly [K, V]>;

Overrides

NonEmpty.toArray

toBuilder

undocumented

Definition

toBuilder(): HashMap.Builder<K, V>;

Overrides

RMapBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<(readonly [K, V])[]>;

Overrides

VariantMapBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantMapBase.toString

updateAt

undocumented

Definition

updateAt<UK>(key: RelatedTo<K, UK>, update: Update<V>): HashMap.NonEmpty<K, V>;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
updateUpdate<V>

Overrides

NonEmpty.updateAt