Package 

Class StringUtilsKt

    • 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> Entry.Map<K, V> toEntry(Pair<K, V> $self) Adds a method to Kotlin's Pair to convert it to a Map.Entry.
      final static <A extends Any> A nullWhen(A a, A x) Utility function that returns null when A equals X, otherwise returns A unchanged.
      final static <A extends Any> A nullWhen(A a, Function1<A, Boolean> f) Utility function that returns null when f(A) is true, otherwise returns A unchanged.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • toEntry

         final static <K extends Any, V extends Any> Entry.Map<K, V> toEntry(Pair<K, V> $self)

        Adds a method to Kotlin's Pair to convert it to a Map.Entry.

      • nullWhen

         final static <A extends Any> A nullWhen(A a, A x)

        Utility function that returns null when A equals X, otherwise returns A unchanged. This is really just syntactic sugar for brevity.

      • nullWhen

         final static <A extends Any> A nullWhen(A a, Function1<A, Boolean> f)

        Utility function that returns null when f(A) is true, otherwise returns A unchanged. This is really just syntactic sugar for brevity.