abstract class HashMapNonEmptyBase<K,V>
undocumented
Extends: NonEmptyBase<E>
Extended by: HashMapBlock<K,V>, HashMapCollision<K,V>
Type parameters
| Name | Description |
|---|---|
| K | undocumented |
| V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextDefinition
abstract get context(): HashMapContext<K>;
isEmpty
Returns false since the collection is known to be non-empty.
isEmptyfalse since the collection is known to be non-empty.Methods
[Symbol.iterator]
Returns a fast iterator over the elements of the collection.
[Symbol.iterator]addEntries
undocumented
addEntriesDefinition
addEntries(entries: StreamSource<readonly [K, V]>): HashMap.NonEmpty<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
entries | StreamSource<readonly [K, V]> |
addEntry
undocumented
addEntryasNormal
undocumented
asNormalassumeNonEmpty
Returns this, since the collection is already known to be non-empty.
assumeNonEmptythis, since the collection is already known to be non-empty.filter
undocumented
filterforEach
undocumented
forEachDefinition
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;} |
get
undocumented
gethasKey
undocumented
hasKeymapValues
undocumented
mapValuesmodifyAt
undocumented
modifyAtDefinition
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;} |
nonEmpty
Returns true and instructs the compiler to treat the instance as non-empty.
nonEmptytrue and instructs the compiler to treat the instance as non-empty.removeKey
undocumented
removeKeyremoveKeyAndGet
undocumented
removeKeyAndGetremoveKeys
undocumented
removeKeysDefinition
removeKeys<UK>(keys: StreamSource<RelatedTo<K, UK>>): HashMap<K, V>;
Type parameters
| Name | Description |
|---|---|
| UK |
Parameters
| Name | Type | Description |
|---|---|---|
keys | StreamSource<RelatedTo<K, UK>> |
set
undocumented
setstream
Returns a non-empty Stream containing all elements of the collection.
streamStream containing all elements of the collection.streamKeys
undocumented
streamKeysDefinition
streamKeys(): Stream.NonEmpty<K>;
streamValues
undocumented
streamValuesDefinition
streamValues(): Stream.NonEmpty<V>;
toArray
undocumented
toArrayDefinition
abstract toArray(): ArrayNonEmpty<readonly [K, V]>;