Skip to main content

interface VariantMultiSet.NonEmpty<T>

A non-empty type-variant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the VariantMultiSet API documentation

Extends: Streamable.NonEmpty<T>, VariantMultiSet<T>

Type parameters

NameDescription
Tthe value type
note

Type-variance means that both the value type can be widened in a type-safe way without casting. @note As a consequence of being variant, the type does not contain methods that (can) add new elements to the collection.

Methods

stream

Returns a non-empty Stream of the elements in this collection.

Definition

stream(): Stream.NonEmpty<T>;

Overrides

NonEmpty.stream