Class CollectionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <K extends Any, V extends Any> Map<K, V> mapNotNullValues(Pair<K, V> pairs) Return a map with only not null values.
      final static <T extends Any, K extends Any, V extends Any> List<Pair<K, V>> mapNotNullValues(Iterable<T> $self, Function1<T, Pair<K, V>> transform) Map not null values of the Pair results of the specified transformation.
      final static <T extends Any> Set<T> toSet(Enumeration<T> $self) Extract a Set from an Enumeration.
      final static <T extends Any> List<T> toList(Iterator<T> $self) Extract a List from an Iterator.
      final static <T extends Any> List<T> toSafeList(Iterator<T> $self) Extract safely a List from an Iterator - if an [Iterator.next()) call throws an error, ignore this call.
      final static <T extends Any> Long sumByLong(Iterable<T> $self, Function1<T, Long> selector) Returns the sum of all values produced by selector function applied to each element in the collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait