Skip to main content

class SortedMapEmpty<K,V>

undocumented

Type parameters​

NameDefaultDescription
Kanyundocumented
Vanyundocumented

Properties​

_NonEmptyType​

undocumented

Definition​

_NonEmptyType: SortedMap.NonEmpty<K, V>;

context​

undocumented

Definition​

readonly context: SortedMapContext<K>;

Methods​

addEntries​

undocumented

Definition​

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

Parameters​

NameTypeDescription
entriesStreamSource<readonly [K, V]>

addEntry​

undocumented

Definition​

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

Parameters​

NameTypeDescription
entryreadonly [K, V]

findIndex​

undocumented

Definition​

findIndex(): number;

get​

undocumented

Definition​

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

Type parameters​

NameDescription
_
O

Parameters​

NameTypeDescription
keyany
otherwiseOptLazy<O>

getKeyAtIndex​

undocumented

Definition​

getKeyAtIndex<O>(index: number, otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

getValueAtIndex​

undocumented

Definition​

getValueAtIndex<O>(index: number, otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

hasKey​

undocumented

Definition​

hasKey(): false;

mapValues​

undocumented

Definition​

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

Type parameters​

NameDescription
V2

maxKey​

undocumented

Definition​

maxKey<O>(otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
otherwiseOptLazy<O>

maxValue​

undocumented

Definition​

maxValue<O>(otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
otherwiseOptLazy<O>

minKey​

undocumented

Definition​

minKey<O>(otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
otherwiseOptLazy<O>

minValue​

undocumented

Definition​

minValue<O>(otherwise?: OptLazy<O>): O;

Type parameters​

NameDescription
O

Parameters​

NameTypeDescription
otherwiseOptLazy<O>

modifyAt​

undocumented

Definition​

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

Parameters​

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

removeKey​

undocumented

Definition​

removeKey(): SortedMap<K, V>;

removeKeyAndGet​

undocumented

Definition​

removeKeyAndGet(): undefined;

removeKeys​

undocumented

Definition​

removeKeys(): SortedMap<K, V>;

set​

undocumented

Definition​

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

Parameters​

NameTypeDescription
keyK
valueV

slice​

undocumented

Definition​

slice(): SortedMap<K, V>;

streamKeys​

undocumented

Definition​

streamKeys(): Stream<K>;

streamRange​

undocumented

Definition​

streamRange(): Stream<readonly [K, V]>;

streamSliceIndex​

undocumented

Definition​

streamSliceIndex(): Stream<readonly [K, V]>;

streamValues​

undocumented

Definition​

streamValues(): Stream<V>;

toBuilder​

undocumented

Definition​

toBuilder(): SortedMapBuilder<K, V>;

toJSON​

undocumented

Definition​

toJSON(): ToJSON<any[]>;

toString​

undocumented

Definition​

toString(): string;

updateAt​

undocumented

Definition​

updateAt(): SortedMap<K, V>;