toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.external.units.collections
/
ReadOnlyPrimitiveLongSet
Read
Only
Primitive
Long
Set
open
class
ReadOnlyPrimitiveLongSet
:
Iterable
<
T
>
A read-only set of unique primitive
long
values.
Since
1.0.0-pre
Members
Constructors
Read
Only
Primitive
Long
Set
Link copied to clipboard
constructor
(
@
NonNull
values
:
Array
<
Long
>
)
Creates a new set from the given values.
Functions
contains
Link copied to clipboard
open
fun
contains
(
value
:
Long
)
:
Boolean
Checks if the set contains a particular value.
is
Empty
Link copied to clipboard
open
fun
isEmpty
(
)
:
Boolean
Checks if the set is empty, i.e.
iterator
Link copied to clipboard
@
NonNull
open
fun
iterator
(
)
:
Iterator
<
Long
>
size
Link copied to clipboard
open
fun
size
(
)
:
Int
Retrieves the number of elements in the set.
stream
Link copied to clipboard
@
NonNull
open
fun
stream
(
)
:
LongStream
Creates a stream of primitive long values for the set.
to
Array
Link copied to clipboard
@
NonNull
open
fun
toArray
(
)
:
Array
<
Long
>
Creates a new array that contains all of the values in the set.
Inherited functions
for
Each
Link copied to clipboard
open
fun
forEach
(
action
:
Consumer
<
in
T
>
)
spliterator
Link copied to clipboard
open
fun
spliterator
(
)
:
Spliterator
<
T
>