public class CollectionsKt
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.Map<K,V> |
mapNotNullValues(kotlin.Pair... pairs)
Return a map with only not null values.
|
static <T,K,V> java.util.List<kotlin.Pair> |
mapNotNullValues(java.lang.Iterable<? extends T> $receiver,
kotlin.jvm.functions.Function1<? super T,? extends kotlin.Pair<? extends K,? extends V>> transform)
Map not null values of the Pair results of the specified transformation.
|
static <T> long |
sumByLong(java.lang.Iterable<? extends T> $receiver,
kotlin.jvm.functions.Function1<? super T,java.lang.Long> selector)
Returns the sum of all values produced by
selector function applied to each element in the collection. |
static <T> java.util.List<T> |
toList(java.util.Iterator<? extends T> $receiver)
|
static <T> java.util.Set<T> |
toSet(java.util.Enumeration<T> $receiver)
Extract a Set from an Enumeration.
|
@NotNull
public static <K,V> java.util.Map<K,V> mapNotNullValues(@NotNull
kotlin.Pair... pairs)
Return a map with only not null values.
@NotNull
public static <T,K,V> java.util.List<kotlin.Pair> mapNotNullValues(@NotNull
java.lang.Iterable<? extends T> $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super T,? extends kotlin.Pair<? extends K,? extends V>> transform)
Map not null values of the Pair results of the specified transformation.
@NotNull
public static <T> java.util.Set<T> toSet(@NotNull
java.util.Enumeration<T> $receiver)
Extract a Set from an Enumeration.
@NotNull
public static <T> java.util.List<T> toList(@NotNull
java.util.Iterator<? extends T> $receiver)