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 Long
currentSyncTimeMillis()
Proper and correct way to get current timestamp. final static String
textValue(StyledText $self)
final static String
textValue(ButtonConfiguration $self)
final static String
textValue(String $self)
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 Integer
rotationTimesToDegrees(Integer times)
final static ImageRotation
rotationDegreesToImageRotation(Integer degrees)
-
-
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)
-
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)
-
-
-
-