abstract class HashMapNonEmptyBase<K,V>
undocumented
Extends: NonEmptyBase<E>
Implements: HashMap.NonEmpty<K,V>
Extended by: HashMapBlock<K,V>
, HashMapCollision<K,V>
Type parameters
Name | Description |
---|---|
K | undocumented |
V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
context
undocumented
context
isEmpty
undocumented
isEmpty
size
undocumented
size
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
Definition
[Symbol.iterator]():
FastIterator
<E>;
Overrides
NonEmptyBase.[Symbol.iterator], FastIterable.[Symbol.iterator]
addEntries
undocumented
addEntries
Definition
addEntries(entries:
StreamSource
<readonly [K, V]>):
HashMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entries | StreamSource <readonly [K, V]> |
Overrides
addEntry
undocumented
addEntry
Definition
abstract addEntry(entry: readonly [K, V], hash?: number):
HashMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entry | readonly [K, V] | |
hash | number |
Overrides
asNormal
undocumented
asNormal
assumeNonEmpty
undocumented
assumeNonEmpty
filter
undocumented
filter
forEach
undocumented
forEach
Definition
abstract forEach(f: (entry: readonly [K, V], index: number, halt: () => void) => void, options?: {
state?:
TraverseState
;
}): void;
Parameters
Name | Type | Description |
---|---|---|
f | (entry: readonly [K, V], index: number, halt: () => void) => void | |
options | { state?: TraverseState ; } |
Overrides
get
undocumented
get
hasKey
undocumented
hasKey
mapValues
undocumented
mapValues
Definition
abstract mapValues<V2>(mapFun: (value: V, key: K) => V2):
HashMap.NonEmpty
<K, V2>;
Type parameters
Name | Description |
---|---|
V2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: V, key: K) => V2 |
Overrides
modifyAt
undocumented
modifyAt
Definition
abstract modifyAt(atKey: K, options: {
ifNew?:
OptLazyOr
<V, Token>;
ifExists?: ((currentEntry: V, remove: Token) => V
|
Token)
|
V;
}):
HashMap
<K, V>
|
any;
Parameters
Name | Type | Description |
---|---|---|
atKey | K | |
options | { ifNew?: OptLazyOr <V, Token>; ifExists?: ((currentEntry: V, remove: Token) => V | Token) | V; } |
Overrides
removeKey
undocumented
removeKey
removeKeyAndGet
undocumented
removeKeyAndGet
removeKeys
undocumented
removeKeys
Definition
removeKeys<UK>(keys:
StreamSource
<
RelatedTo
<K, UK>>):
HashMap
<K, V>;
Type parameters
Name | Description |
---|---|
UK |
Parameters
Name | Type | Description |
---|---|---|
keys | StreamSource < RelatedTo <K, UK>> |
Overrides
set
undocumented
set
Definition
set(key: K, value: V):
HashMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
key | K | |
value | V |
Overrides
stream
undocumented
stream
streamKeys
undocumented
streamKeys
streamValues
undocumented
streamValues
toArray
undocumented
toArray
toBuilder
undocumented
toBuilder
toJSON
undocumented
toJSON
toString
undocumented
toString