ReadOnlyPrimitiveLongSet

A read-only set of unique primitive long values.

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor(@NonNull values: Array<Long>)
Creates a new set from the given values.

Functions

Link copied to clipboard
open fun contains(value: Long): Boolean
Checks if the set contains a particular value.
Link copied to clipboard
open fun isEmpty(): Boolean
Checks if the set is empty, i.e.
Link copied to clipboard
Link copied to clipboard
open fun size(): Int
Retrieves the number of elements in the set.
Link copied to clipboard
Creates a stream of primitive long values for the set.
Link copied to clipboard
open fun toArray(): Array<Long>
Creates a new array that contains all of the values in the set.

Inherited functions

Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard