-
- All Implemented Interfaces:
public final class StringUtilsKt
-
-
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. -
-
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.
-
-
-
-