korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-datastructure
/
korlibs.datastructure
/
BitSet
Bit
Set
class
BitSet
(
val
size
:
Int
)
:
Collection
<
Boolean
>
Fixed size
BitSet
. Similar to a
BooleanArray
but tightly packed to reduce memory usage.
Members
Members & Extensions
Constructors
Bit
Set
Link copied to clipboard
constructor
(
size
:
Int
)
Properties
size
Link copied to clipboard
open
override
val
size
:
Int
Functions
as
Fake
Mutable
Link copied to clipboard
fun
<
K
>
Collection
<
K
>
.
asFakeMutable
(
)
:
FakeMutableCollection
<
K
>
associate
By
Int
Link copied to clipboard
fun
<
T
>
Iterable
<
T
>
.
associateByInt
(
block
:
(
index
:
Int
,
value
:
T
)
->
Int
)
:
IntMap
<
T
>
clear
Link copied to clipboard
fun
clear
(
)
contains
Link copied to clipboard
open
operator override
fun
contains
(
element
:
Boolean
)
:
Boolean
contains
All
Link copied to clipboard
open
override
fun
containsAll
(
elements
:
Collection
<
Boolean
>
)
:
Boolean
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
fast
Random
Link copied to clipboard
inline
fun
<
T
>
Collection
<
T
>
.
fastRandom
(
)
:
T
get
Link copied to clipboard
operator
fun
get
(
index
:
Int
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
Boolean
>
map
Double
Link copied to clipboard
inline
fun
<
T
>
Iterable
<
T
>
.
mapDouble
(
callback
:
(
T
)
->
Double
)
:
DoubleArrayList
map
Float
Link copied to clipboard
inline
fun
<
T
>
Iterable
<
T
>
.
mapFloat
(
callback
:
(
T
)
->
Float
)
:
FloatArrayList
map
Int
Link copied to clipboard
inline
fun
<
T
>
Iterable
<
T
>
.
mapInt
(
callback
:
(
T
)
->
Int
)
:
IntArrayList
multisorted
Link copied to clipboard
fun
<
T
>
Iterable
<
T
>
.
multisorted
(
vararg
props
:
KProperty1
<
T
,
Comparable
<
*
>
>
)
:
List
<
T
>
set
Link copied to clipboard
fun
set
(
index
:
Int
)
operator
fun
set
(
index
:
Int
,
value
:
Boolean
)
sum
Of
Double
Link copied to clipboard
@
JvmName
(
name
=
"sumOfFloat"
)
inline
fun
<
T
>
Iterable
<
T
>
.
sumOfDouble
(
selector
:
(
T
)
->
Double
)
:
Double
sum
Of
Float
Link copied to clipboard
@
JvmName
(
name
=
"sumOfFloat"
)
inline
fun
<
T
>
Iterable
<
T
>
.
sumOfFloat
(
selector
:
(
T
)
->
Float
)
:
Float
to
Deque
Link copied to clipboard
fun
<
T
>
Collection
<
T
>
.
toDeque
(
)
:
Deque
<
T
>
to
Double
List
Link copied to clipboard
inline
fun
Iterable
<
Double
>
.
toDoubleList
(
)
:
DoubleArrayList
to
Float
List
Link copied to clipboard
inline
fun
Iterable
<
Float
>
.
toFloatList
(
)
:
FloatArrayList
to
Int
List
Link copied to clipboard
inline
fun
Iterable
<
Int
>
.
toIntList
(
)
:
IntArrayList
to
Int
Map
Link copied to clipboard
fun
<
T
>
Collection
<
Pair
<
Int
,
T
>
>
.
toIntMap
(
)
:
IntMap
<
T
>
to
Linked
Map
Link copied to clipboard
fun
<
K
,
V
>
Iterable
<
Pair
<
K
,
V
>
>
.
toLinkedMap
(
)
:
LinkedHashMap
<
K
,
V
>
unset
Link copied to clipboard
fun
unset
(
index
:
Int
)