BetterModel
Toggle table of contents
1.10.2-SNAPSHOT-265
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.util
/
CollectionUtil
/
group
group
@
NotNull
@
Unmodifiable
open
fun
<
K
,
E
>
group
(
@
NotNull
stream
:
@
NotNull
Stream
<
E
>
,
@
NotNull
keyMapper
:
@
NotNull
(
E
)
->
K
)
:
@
NotNull
@
Unmodifiable
Map
<
K
,
List
<
E
>
>
Groups stream by some key
Return
unmodifiable grouped map
Parameters
stream
stream
key
Mapper
key mapper
<K>
key
<E>
element