Skip to main content

class ProximityMapNonEmpty<K,V>

undocumented

Implements: ProximityMap.NonEmpty<K,V>

Type parameters

NameDescription
Kundocumented
Vundocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: ProximityMap.NonEmpty<K, V>;

context

undocumented

Definition

readonly context: ProximityMap.Context<K>;

Overrides

RMapBase.context

isEmpty

undocumented

Definition

readonly isEmpty = false;

Overrides

NonEmpty.isEmpty

size

undocumented

Definition

get size(): number;

Overrides

VariantMapBase.size

Methods

[Symbol.iterator]

undocumented

Definition

[Symbol.iterator](): FastIterator<readonly [K, V]>;

Overrides

FastIterable.[Symbol.iterator]

addEntries

undocumented

Definition

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

Parameters

NameTypeDescription
entriesStreamSource<readonly [K, V]>

Overrides

NonEmpty.addEntries

addEntry

undocumented

Definition

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

Parameters

NameTypeDescription
entryreadonly [K, V]

Overrides

RMapBase.addEntry

asNormal

undocumented

Definition

asNormal(): ProximityMap<K, V>;

Overrides

NonEmpty.asNormal

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): this;

Overrides

NonEmpty.assumeNonEmpty

filter

undocumented

Definition

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

Parameters

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

Overrides

VariantMapBase.filter

forEach

undocumented

Definition

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

Applies getValueWithNearestKey() to its entries

Definitions

get<UK = K>(key: RelatedTo<K, UK>): V | undefined;

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.get

hasKey

undocumented

Definition

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.hasKey

mapValues

undocumented

Definition

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

Type parameters

NameDescription
V2

Parameters

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

Overrides

NonEmpty.mapValues

modifyAt

undocumented

Definition

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

Parameters

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

Overrides

RMapBase.modifyAt

nonEmpty

undocumented

Definition

nonEmpty(): this is ProximityMap.NonEmpty<K, V>;

Overrides

NonEmpty.nonEmpty

removeKey

undocumented

Definition

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKey

removeKeyAndGet

undocumented

Definition

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKeyAndGet

removeKeys

undocumented

Definition

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keysStreamSource<RelatedTo<K, UK>>

Overrides

VariantMapBase.removeKeys

set

undocumented

Definition

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

Parameters

NameTypeDescription
keyK
valueV

Overrides

RMapBase.set

stream

undocumented

Definition

stream(): Stream.NonEmpty<readonly [K, V]>;

Overrides

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

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

Overrides

NonEmpty.toArray

toBuilder

undocumented

Definition

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

Overrides

RMapBase.toBuilder

toJSON

undocumented

Definition

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

Overrides

VariantMapBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantMapBase.toString

updateAt

undocumented

Definition

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

Type parameters

NameDefaultDescription
UKK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
updateRMapBase.Update<V>

Overrides

NonEmpty.updateAt