class MultiSetEmpty<T,Tp>
undocumented
Extends: EmptyBase
Implements: MultiSetBase<T,Tp>
Type parameters
| Name | Constraints | Description |
|---|---|---|
| T | undocumented | |
| Tp | ContextImplTypes | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextcountMap
undocumented
countMapisEmpty
Returns true since the collection is empty.
isEmptytrue since the collection is empty.length
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.sizeDistinct
undocumented
sizeDistinctMethods
[Symbol.iterator]
Returns an empty iterator.
[Symbol.iterator]add
undocumented
addaddAll
undocumented
addAllDefinition
addAll(values: StreamSource<T>): WithElem<Tp, T>['nonEmpty'];
Parameters
| Name | Type | Description |
|---|---|---|
values | StreamSource<T> |
Overrides
addEntries
undocumented
addEntriesDefinition
addEntries(entries: StreamSource<readonly [T, number]>): WithElem<Tp, T>['normal'];
Parameters
| Name | Type | Description |
|---|---|---|
entries | StreamSource<readonly [T, number]> |
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, VariantMultiSetBase.assumeNonEmpty
count
undocumented
countfilter
Returns this, since filtering an empty collection is still empty.
filterthis, since filtering an empty collection is still empty.filterEntries
undocumented
filterEntriesforEach
undocumented
forEachhas
undocumented
hasmodifyCount
undocumented
modifyCountnonEmpty
Returns false, keeping the type narrowed to the empty variant.
nonEmptyfalse, keeping the type narrowed to the empty variant.removeAllEvery
undocumented
removeAllEverysetCount
undocumented
setCountstream
Returns an empty Stream.
streamStream.streamDistinct
undocumented
streamDistincttoArray
undocumented
toArraytoBuilder
undocumented
toBuildertoJSON
undocumented
toJSONtoString
undocumented
toString