class OrderedSetEmpty<T,Tp,TpG>
undocumented
Extends: EmptyBase
Implements: OrderedSetBase<T,Tp>
Type parameters
| Name | Constraints | Default | Description |
|---|---|---|---|
| T | undocumented | ||
| Tp | OrderedSetTypes | undocumented | |
| TpG | WithElem<Tp, T> | WithElem<Tp, T> | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypeisEmpty
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.order
undocumented
ordersize
Returns 0 for the size of the collection.
size0 for the size of the collection.sourceSet
undocumented
sourceSetMethods
[Symbol.iterator]
Returns an empty iterator.
[Symbol.iterator]addAll
undocumented
addAllassumeNonEmpty
Throws a RimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.
assumeNonEmptyRimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.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.
forEachnonEmpty
Returns false, keeping the type narrowed to the empty variant.
nonEmptyfalse, keeping the type narrowed to the empty variant.remove
undocumented
removestream
Returns an empty Stream.
streamStream.symDifference
undocumented
symDifferenceDefinition
symDifference(other: StreamSource<T>): TpG['normal'];
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
toArray
Returns an empty array.
toArrayunion
undocumented
unionDefinition
union(other: StreamSource<T>): TpG['normal'] | any;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |