Skip to main content

class HashMapEmpty<K,V>

undocumented

Extends: EmptyBase

Implements: HashMap<K,V>

Type parameters

NameDefaultDescription
Kanyundocumented
Vanyundocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: HashMap.NonEmpty<K, V>;

Overrides

EmptyBase._NonEmptyType

context

undocumented

Definition

readonly context: HashMapContext<K>;

isEmpty

undocumented

Definition

get isEmpty(): true;

Overrides

EmptyBase.isEmpty

length

undocumented

Definition

get length(): 0;

Overrides

EmptyBase.length

size

undocumented

Definition

get size(): 0;

Overrides

EmptyBase.size

Methods

[Symbol.iterator]

undocumented

Definition

[Symbol.iterator](): FastIterator<any>;

Overrides

EmptyBase.[Symbol.iterator]

addEntries

undocumented

Definition

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

Parameters

NameTypeDescription
entriesStreamSource<readonly [K, V]>

addEntry

undocumented

Definition

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

Parameters

NameTypeDescription
entryreadonly [K, V]

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): never;

Overrides

EmptyBase.assumeNonEmpty

filter

undocumented

Definition

filter(): any;

Overrides

EmptyBase.filter

forEach

undocumented

Definition

forEach(): void;

Overrides

EmptyBase.forEach

get

undocumented

Definition

get<_, O>(key: K, otherwise?: OptLazy<O>): O;

Type parameters

NameDescription
_
O

Parameters

NameTypeDescription
keyK
otherwiseOptLazy<O>

hasKey

undocumented

Definition

hasKey(): false;

mapValues

undocumented

Definition

mapValues<V2>(): HashMap<K, V2>;

Type parameters

NameDescription
V2

modifyAt

undocumented

Definition

modifyAt(atKey: K, options: {
    ifNew?: OptLazyOr<V, Token>;
  }): HashMap<K, V>;

Parameters

NameTypeDescription
atKeyK
options{
    ifNew?: OptLazyOr<V, Token>;
  }

nonEmpty

undocumented

Definition

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

Overrides

EmptyBase.nonEmpty

remove

undocumented

Definition

remove(): any;

Overrides

EmptyBase.remove

removeKey

undocumented

Definition

removeKey(): HashMap<K, V>;

removeKeyAndGet

undocumented

Definition

removeKeyAndGet(): undefined;

removeKeys

undocumented

Definition

removeKeys(): HashMap<K, V>;

set

undocumented

Definition

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

Parameters

NameTypeDescription
keyK
valueV

stream

undocumented

Definition

stream(): Stream<any>;

Overrides

EmptyBase.stream

streamKeys

undocumented

Definition

streamKeys(): Stream<K>;

streamValues

undocumented

Definition

streamValues(): Stream<V>;

toArray

undocumented

Definition

toArray(): [];

Overrides

EmptyBase.toArray

toBuilder

undocumented

Definition

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

toJSON

undocumented

Definition

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

toString

undocumented

Definition

toString(): string;

updateAt

undocumented

Definition

updateAt(): HashMap<K, V>;