class ProximityMapNonEmpty<K,V>
undocumented
Implements: ProximityMap.NonEmpty<K,V>
Type parameters
Name | Description |
---|---|
K | undocumented |
V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
Definition
_NonEmptyType:
ProximityMap.NonEmpty
<K, V>;
context
undocumented
context
isEmpty
undocumented
isEmpty
size
undocumented
size
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
addEntries
undocumented
addEntries
Definition
addEntries(entries:
StreamSource
<readonly [K, V]>):
ProximityMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entries | StreamSource <readonly [K, V]> |
Overrides
addEntry
undocumented
addEntry
Definition
addEntry(entry: readonly [K, V]):
ProximityMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entry | readonly [K, V] |
Overrides
asNormal
undocumented
asNormal
assumeNonEmpty
undocumented
assumeNonEmpty
filter
undocumented
filter
Definition
filter(pred: (entry: readonly [K, V], index: number, halt: () => void) => boolean, options?: {
negate?: boolean;
}):
ProximityMap
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
pred | (entry: readonly [K, V], index: number, halt: () => void) => boolean | |
options | { negate?: boolean; } |
Overrides
forEach
undocumented
forEach
Definition
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
Applies getValueWithNearestKey()
to its entries
get
getValueWithNearestKey()
to its entrieshasKey
undocumented
hasKey
mapValues
undocumented
mapValues
Definition
mapValues<V2>(mapFun: (value: V, key: K) => V2):
ProximityMap.NonEmpty
<K, V2>;
Type parameters
Name | Description |
---|---|
V2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: V, key: K) => V2 |
Overrides
modifyAt
undocumented
modifyAt
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
Name | Type | Description |
---|---|---|
atKey | K | |
options | { ifNew?: OptLazyOr <V, Token>; ifExists?: <V2 extends V = V>(currentEntry: V & V2, remove: Token) => V | Token; } |
Overrides
nonEmpty
undocumented
nonEmpty
removeKey
undocumented
removeKey
removeKeyAndGet
undocumented
removeKeyAndGet
removeKeys
undocumented
removeKeys
Definition
removeKeys<UK = K>(keys:
StreamSource
<
RelatedTo
<K, UK>>):
ProximityMap
<K, V>;
Type parameters
Name | Default | Description |
---|---|---|
UK | K |
Parameters
Name | Type | Description |
---|---|---|
keys | StreamSource < RelatedTo <K, UK>> |
Overrides
set
undocumented
set
Definition
set(key: K, value: V):
ProximityMap.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
updateAt
undocumented
updateAt
Definition
updateAt<UK = K>(key:
RelatedTo
<K, UK>, update:
RMapBase.Update
<V>):
ProximityMap.NonEmpty
<K, V>;
Type parameters
Name | Default | Description |
---|---|---|
UK | K |
Parameters
Name | Type | Description |
---|---|---|
key | RelatedTo <K, UK> | |
update | RMapBase.Update <V> |