class MultiMapEmpty<K,V,Tp>
undocumented
Extends: EmptyBase
Implements: MultiMapBase<K,V,Tp>
Type parameters
| Name | Constraints | Description |
|---|---|---|
| K | undocumented | |
| V | undocumented | |
| Tp | ContextImplTypes | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextisEmpty
Returns true since the collection is empty.
isEmptytrue since the collection is empty.keyMap
undocumented
keyMapkeySize
undocumented
keySizelength
Returns 0 for the length of the collection.
length0 for the length of the collection.size
Returns 0 for the size of the collection.
size0 for the size of the collection.Methods
[Symbol.iterator]
Returns an empty iterator.
[Symbol.iterator]add
undocumented
addDefinition
add(key: K, value: V): WithKeyValue<Tp, K, V>['nonEmpty'];
Parameters
| Name | Type | Description |
|---|---|---|
key | K | |
value | V |
Overrides
addEntries
undocumented
addEntriesDefinition
addEntries(entries: StreamSource<readonly [K, V]>): any;
Parameters
| Name | Type | Description |
|---|---|---|
entries | StreamSource<readonly [K, V]> |
Overrides
assumeNonEmpty
Throws a RimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.
assumeNonEmptyRimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.Definition
assumeNonEmpty(): never;
RimbuError.EmptyCollectionAssumedNonEmptyError
Overrides
EmptyBase.assumeNonEmpty, VariantMultiMapBase.assumeNonEmpty
filter
Returns this, since filtering an empty collection is still empty.
filterthis, since filtering an empty collection is still empty.forEach
Performs no action, since there are no elements.
forEachgetValues
undocumented
getValueshasEntry
undocumented
hasEntryhasKey
undocumented
hasKeymodifyAt
undocumented
modifyAtDefinition
modifyAt(atKey: K, options: {
ifNew?: OptLazy<StreamSource<V>>;
}): WithKeyValue<Tp, K, V>['normal'];
Parameters
| Name | Type | Description |
|---|---|---|
atKey | K | |
options | {ifNew?: OptLazy<StreamSource<V>>;} |
Overrides
nonEmpty
Returns false, keeping the type narrowed to the empty variant.
nonEmptyfalse, keeping the type narrowed to the empty variant.remove
Returns this, since removing from an empty collection has no effect.
removethis, since removing from an empty collection has no effect.removeEntries
undocumented
removeEntriesremoveEntry
undocumented
removeEntryremoveKey
undocumented
removeKeyremoveKeyAndGet
undocumented
removeKeyAndGetremoveKeys
undocumented
removeKeyssetValues
undocumented
setValuesDefinition
setValues(key: K, values: StreamSource<V>): WithKeyValue<Tp, K, V>['nonEmpty'];
Parameters
| Name | Type | Description |
|---|---|---|
key | K | |
values | StreamSource<V> |
Overrides
stream
Returns an empty Stream.
streamStream.streamKeys
undocumented
streamKeysstreamValues
undocumented
streamValuestoArray
Returns an empty array.
toArraytoBuilder
undocumented
toBuildertoJSON
undocumented
toJSONtoString
undocumented
toString