Kevlar
2.0.13
common
kollections-interoperable
/
kollections
/
MutableCollection
Mutable
Collection
interface
MutableCollection
<
E
>
:
MutableCollectionLike
<
E
>
,
Collection
<
E
>
Inheritors
MutableGraph
MutableList
MutableSet
Members
Members & Extensions
Functions
add
Link copied to clipboard
abstract
override
fun
add
(
element
:
E
)
:
Boolean
add
All
Link copied to clipboard
abstract
fun
addAll
(
elements
:
Collection
<
E
>
)
:
Boolean
associate
Link copied to clipboard
abstract
fun
<
K2
,
V2
>
associate
(
transformer
:
(
E
)
->
MapEntry
<
K2
,
V2
>
)
:
Map
<
K2
,
V2
>
clear
Link copied to clipboard
abstract
override
fun
clear
(
)
contains
Link copied to clipboard
abstract
operator
fun
contains
(
element
:
E
)
:
Boolean
contains
All
Link copied to clipboard
abstract
fun
containsAll
(
elements
:
Collection
<
E
>
)
:
Boolean
filter
Link copied to clipboard
abstract
fun
filter
(
predicate
:
(
E
)
->
Boolean
)
:
List
<
E
>
first
Link copied to clipboard
abstract
fun
first
(
)
:
E
first
Or
Null
Link copied to clipboard
abstract
fun
firstOrNull
(
)
:
E
?
for
Each
Link copied to clipboard
abstract
fun
forEach
(
lambda
:
(
item
:
E
)
->
Unit
)
for
Each
With
Index
Link copied to clipboard
abstract
fun
forEachWithIndex
(
lambda
:
(
item
:
E
,
index
:
Int
)
->
Unit
)
is
Empty
Link copied to clipboard
abstract
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
abstract
operator override
fun
iterator
(
)
:
MutableIterator
<
E
>
map
Link copied to clipboard
abstract
fun
<
R
>
map
(
transform
:
(
item
:
E
)
->
R
)
:
List
<
R
>
map
To
Array
Link copied to clipboard
abstract
fun
<
R
>
mapToArray
(
transform
:
(
item
:
E
)
->
R
)
:
Array
<
R
>
map
To
Array
With
Index
Link copied to clipboard
abstract
fun
<
R
>
mapToArrayWithIndex
(
transform
:
(
item
:
E
,
index
:
Int
)
->
R
)
:
Array
<
R
>
map
With
Index
Link copied to clipboard
abstract
fun
<
R
>
mapWithIndex
(
transform
:
(
item
:
E
,
index
:
Int
)
->
R
)
:
List
<
R
>
remove
Link copied to clipboard
abstract
override
fun
remove
(
element
:
E
)
:
Boolean
remove
All
Link copied to clipboard
abstract
fun
removeAll
(
elements
:
Collection
<
E
>
)
:
Boolean
retain
All
Link copied to clipboard
abstract
fun
retainAll
(
elements
:
Collection
<
E
>
)
:
Boolean
to
IList
Link copied to clipboard
inline
fun
<
E
>
Collection
<
E
>
.
toIList
(
)
:
List
<
E
>
to
IMutable
List
Link copied to clipboard
inline
fun
<
E
>
Collection
<
E
>
.
toIMutableList
(
)
:
MutableList
<
E
>
to
IMutable
Set
Link copied to clipboard
inline
fun
<
E
>
Collection
<
E
>
.
toIMutableSet
(
)
:
MutableSet
<
E
>
to
ISet
Link copied to clipboard
inline
fun
<
E
>
Collection
<
E
>
.
toISet
(
)
:
Set
<
E
>
Properties
size
Link copied to clipboard
abstract
val
size
:
Int