Class KotlinExtensionsKt
-
- All Implemented Interfaces:
public final class KotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> <Error class: unknown class><T>,java.lang.Long)>throttleFirst(<Error class: unknown class><T> $self, Long windowDuration)Emits the first item and then throttles next during windowDuration timeframe. final static LongcurrentSyncTimeMillis()Proper and correct way to get current timestamp. final static StringtextValue(StyledText $self)final static StringtextValue(ButtonConfiguration $self)final static StringtextValue(String $self)final static StringformattedTextValue(String $self, Object args)final static <T extends Any> Map<String, String>fieldsToMap(T $self, KClass<?> clazz)Uses reflection to access all fields of type clazz in T and write field name and its value as a key-value pair into a map. final static IntegerrotationTimesToDegrees(Integer times)final static ImageRotationrotationDegreesToImageRotation(Integer degrees)final static ImageRotationdqaRotationToImageRotation(Double $self)-
-
Method Detail
-
throttleFirst
final static <T extends Any> <Error class: unknown class><T> ,java.lang.Long)>throttleFirst(<Error class: unknown class><T> $self, Long windowDuration)
Emits the first item and then throttles next during windowDuration timeframe.
-
currentSyncTimeMillis
final static Long currentSyncTimeMillis()
Proper and correct way to get current timestamp.
-
textValue
final static String textValue(StyledText $self)
-
textValue
final static String textValue(ButtonConfiguration $self)
-
formattedTextValue
final static String formattedTextValue(String $self, Object args)
-
fieldsToMap
final static <T extends Any> Map<String, String> fieldsToMap(T $self, KClass<?> clazz)
Uses reflection to access all fields of type clazz in T and write field name and its value as a key-value pair into a map.
-
rotationTimesToDegrees
final static Integer rotationTimesToDegrees(Integer times)
-
rotationDegreesToImageRotation
final static ImageRotation rotationDegreesToImageRotation(Integer degrees)
-
dqaRotationToImageRotation
final static ImageRotation dqaRotationToImageRotation(Double $self)
-
-
-
-