Kevlar
2.0.13
common
kollections-interoperable
/
kollections
/
Collection
Collection
interface
Collection
<
out
E
>
:
CollectionLike
<
E
>
,
FunctionalCollection
<
E
>
Inheritors
Graph
List
Map
MutableCollection
Set
AbstractCollection
Members
Members & Extensions
Functions
associate
Link copied to clipboard
abstract
fun
<
K2
,
V2
>
associate
(
transformer
:
(
E
)
->
MapEntry
<
K2
,
V2
>
)
:
Map
<
K2
,
V2
>
contains
Link copied to clipboard
abstract
operator override
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
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
abstract
operator
fun
iterator
(
)
:
Iterator
<
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
>
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
override
val
size
:
Int