# dev.inmo.micro_utils.common

# Package-level declarations

## Types

ArgumentPropertyNonNullableDelegate
Link copied to clipboard
object ArgumentPropertyNonNullableDelegate
ArgumentPropertyNullableDelegate
Link copied to clipboard
object ArgumentPropertyNullableDelegate
ByteArrayAllocator
Link copied to clipboard
typealias ByteArrayAllocator = () -> ByteArray
ByteArrayAllocatorSerializer
Link copied to clipboard
object ByteArrayAllocatorSerializer : KSerializer< ByteArrayAllocator >
ClipboardItem
Link copied to clipboard
external class ClipboardItem (data: dynamic)
DateTimeSerializer
Link copied to clipboard
object DateTimeSerializer : KSerializer<DateTime>

Serializes DateTime as its raw DateTime.unixMillis and deserializes in the same way

Diff
Link copied to clipboard
@Serializable
data class Diff < T >(val removed: List <@Serializable(with = IndexedValueSerializer::class ) IndexedValue < T >>, val replaced: List < Pair <@Serializable(with = IndexedValueSerializer::class ) IndexedValue < T >, @Serializable(with = IndexedValueSerializer::class ) IndexedValue < T >>>, val added: List <@Serializable(with = IndexedValueSerializer::class ) IndexedValue < T >>)

Diff object which contains information about differences between two Iterables

Either
Link copied to clipboard
@Serializable(with = EitherSerializer::class )
sealed interface Either < T1 , T2 >

Realization of this interface will contains at least one not null - optionalT1 or optionalT2

EitherFirst
Link copied to clipboard
@Serializable
data class EitherFirst < T1 , T2 >(val t1: T1 ) : Either < T1 , T2 >

This type Either will always have not nullable optionalT1

EitherSecond
Link copied to clipboard
@Serializable
data class EitherSecond < T1 , T2 >(val t2: T2 ) : Either < T1 , T2 >

This type Either will always have not nullable optionalT2

EitherSerializer
Link copied to clipboard
class EitherSerializer < T1 , T2 >(t1Serializer: KSerializer< T1 >, t2Serializer: KSerializer< T2 >) : KSerializer< Either < T1 , T2 >>
FileName
Link copied to clipboard
@Serializable
@ JvmInline
value class FileName (val string: String )
Gone
Link copied to clipboard
object Gone : Visibility
IndexedValueSerializer
Link copied to clipboard
class IndexedValueSerializer < T >(subSerializer: KSerializer< T >) : KSerializer< IndexedValue < T >>
IntersectionObserver
Link copied to clipboard
external class IntersectionObserver (callback: IntersectionObserverCallback )

This is just an implementation from this commentary of Kotlin JS issue related to the absence of Intersection Observer API

IntersectionObserverCallback
Link copied to clipboard
typealias IntersectionObserverCallback = (entries: Array < IntersectionObserverEntry >, observer: IntersectionObserver ) -> Unit
IntersectionObserverEntry
Link copied to clipboard
external interface IntersectionObserverEntry
IntersectionObserverOptions
Link copied to clipboard
external interface IntersectionObserverOptions
Invisible
Link copied to clipboard
object Invisible : Visibility
MapDiff
Link copied to clipboard
data class MapDiff < K , V >(val removed: Map < K , V >, val changed: Map < K , Pair < V , V >>, val added: Map < K , V >)

Contains diff based on the comparison of objects with the same K.

MPPFile
Link copied to clipboard
expect class MPPFile
Optional
Link copied to clipboard
@Serializable
data class Optional < T >

This type represents T as not only potentially nullable data, but also as a data which can not be presented. This type will be useful in cases when T is nullable and null as valuable data too in time of data absence should be presented by some third type.

Percentage
Link copied to clipboard
@Serializable
@ JvmInline
value class Percentage

Contains of1 as main value, where 100% of percentage is when of1 == 1

PreviewFeature
Link copied to clipboard
@ Target (allowedTargets = [ AnnotationTarget.CLASS , AnnotationTarget.CONSTRUCTOR , AnnotationTarget.FIELD , AnnotationTarget.PROPERTY , AnnotationTarget.PROPERTY_GETTER , AnnotationTarget.PROPERTY_SETTER , AnnotationTarget.FUNCTION , AnnotationTarget.TYPEALIAS ])
annotation class PreviewFeature (val message: String = "It is possible, that behaviour of this thing will be changed or removed in future releases")
Progress
Link copied to clipboard
typealias Progress = Percentage
ResizeObserver
Link copied to clipboard
external class ResizeObserver (callback: ( Array < ResizeObserverEntry >, ResizeObserver ) -> Unit )
ResizeObserverEntry
Link copied to clipboard
external interface ResizeObserverEntry
ResizeObserverObserveOptions
Link copied to clipboard
class ResizeObserverObserveOptions (val box: ResizeObserverObserveOptions.Box ? = null)
ResizeObserverSize
Link copied to clipboard
external interface ResizeObserverSize
SimpleMapper
Link copied to clipboard
interface SimpleMapper < T1 , T2 >
SimpleMapperImpl
Link copied to clipboard
class SimpleMapperImpl < T1 , T2 >(t1: ( T2 ) -> T1 , t2: ( T1 ) -> T2 ) : SimpleMapper < T1 , T2 >
SimpleSuspendableMapper
Link copied to clipboard
interface SimpleSuspendableMapper < T1 , T2 >
SimpleSuspendableMapperImpl
Link copied to clipboard
class SimpleSuspendableMapperImpl < T1 , T2 >(t1: suspend ( T2 ) -> T1 , t2: suspend ( T1 ) -> T2 ) : SimpleSuspendableMapper < T1 , T2 >
SuspendByteArrayAllocator
Link copied to clipboard
typealias SuspendByteArrayAllocator = suspend () -> ByteArray
Visibility
Link copied to clipboard
sealed class Visibility
Visible
Link copied to clipboard
object Visible : Visibility
Warning
Link copied to clipboard
@ Target (allowedTargets = [ AnnotationTarget.CLASS , AnnotationTarget.CONSTRUCTOR , AnnotationTarget.FIELD , AnnotationTarget.PROPERTY , AnnotationTarget.PROPERTY_GETTER , AnnotationTarget.PROPERTY_SETTER , AnnotationTarget.FUNCTION , AnnotationTarget.TYPEALIAS ])
annotation class Warning (val message: String )

## Properties

asAllocator
Link copied to clipboard
val ByteArray . asAllocator : ByteArrayAllocator
asSuspendAllocator
Link copied to clipboard
val ByteArray . asSuspendAllocator : SuspendByteArrayAllocator
val ByteArrayAllocator . asSuspendAllocator : SuspendByteArrayAllocator
bytesAllocator
Link copied to clipboard
expect val MPPFile . bytesAllocator : SuspendByteArrayAllocator
bytesAllocatorSync
Link copied to clipboard
expect val MPPFile . bytesAllocatorSync : ByteArrayAllocator
disabled
Link copied to clipboard
val View . disabled : Boolean
enabled
Link copied to clipboard
val View . enabled : Boolean
filename
Link copied to clipboard
expect val MPPFile . filename : FileName
filesize
Link copied to clipboard
expect val MPPFile . filesize : Long
FixedSignsRange
Link copied to clipboard
val FixedSignsRange : IntRange
gone
Link copied to clipboard
val View . gone : Boolean
hidden
Link copied to clipboard
val View . hidden : Boolean
isCollapsed
Link copied to clipboard
val View . isCollapsed : Boolean
isExpanded
Link copied to clipboard
val View . isExpanded : Boolean
isGone
Link copied to clipboard
val Element . isGone : Boolean
isInvisible
Link copied to clipboard
val Element . isInvisible : Boolean
isOnScreen
Link copied to clipboard
val DOMRect . isOnScreen : Boolean
val Element . isOnScreen : Boolean
isOnScreenByBottomEdge
Link copied to clipboard
val DOMRect . isOnScreenByBottomEdge : Boolean
val Element . isOnScreenByBottomEdge : Boolean
isOnScreenByLeftEdge
Link copied to clipboard
val DOMRect . isOnScreenByLeftEdge : Boolean
val Element . isOnScreenByLeftEdge : Boolean
isOnScreenByRightEdge
Link copied to clipboard
val DOMRect . isOnScreenByRightEdge : Boolean
val Element . isOnScreenByRightEdge : Boolean
isOnScreenByTopEdge
Link copied to clipboard
val DOMRect . isOnScreenByTopEdge : Boolean
val Element . isOnScreenByTopEdge : Boolean
isOnScreenFully
Link copied to clipboard
val DOMRect . isOnScreenFully : Boolean
val Element . isOnScreenFully : Boolean
isOverflow
Link copied to clipboard
val Element . isOverflow : Boolean
isOverflowHeight
Link copied to clipboard
val Element . isOverflowHeight : Boolean
isOverflowWidth
Link copied to clipboard
val Element . isOverflowWidth : Boolean
isVisible
Link copied to clipboard
val Element . isVisible : Boolean
optional
Link copied to clipboard
val < T > T . optional : Optional < T >
optionalOrAbsentIfNull
Link copied to clipboard
val < T : Any > T ?. optionalOrAbsentIfNull : Optional < T >
rootView
Link copied to clipboard
val Activity . rootView : View ?
shown
Link copied to clipboard
val View . shown : Boolean
visibilityState
Link copied to clipboard
var Element . visibilityState : Visibility
var CSSStyleDeclaration . visibilityState : Visibility

## Functions

alsoIfFalse
Link copied to clipboard
inline fun Boolean . alsoIfFalse (block: () -> Unit ): Boolean
alsoIfTrue
Link copied to clipboard
inline fun Boolean . alsoIfTrue (block: () -> Unit ): Boolean
applyDiff
Link copied to clipboard
fun < T > MutableList < T >. applyDiff (diff: Diff < T >)

Applies diff to this

fun < K , V > MutableMap < K , V >. applyDiff (mapDiff: MapDiff < K , V >)

Will apply mapDiff to this

fun < T > MutableList < T >. applyDiff (source: Iterable < T >, strictComparison: Boolean = false): Diff < T >

This method call calculateDiff with strict mode strictComparison and then apply differences to this mutable list

fun < T > MutableList < T >. applyDiff (source: Iterable < T >, comparisonFun: ( T ?, T ?) -> Boolean ): Diff < T >

This method call calculateDiff and then apply differences to this mutable list

fun < K , V > MutableMap < K , V >. applyDiff (from: Map < K , V >, strictComparison: Boolean = false): MapDiff < K , V >
fun < K , V > MutableMap < K , V >. applyDiff (from: Map < K , V >, compareFun: ( K , V , V ) -> Boolean ): MapDiff < K , V >

Will apply changes with from map into this one

argumentOrNull
Link copied to clipboard
fun argumentOrNull (): ArgumentPropertyNullableDelegate
argumentOrThrow
Link copied to clipboard
fun argumentOrThrow (): ArgumentPropertyNonNullableDelegate
asAllocator
Link copied to clipboard
suspend fun SuspendByteArrayAllocator . asAllocator (): ByteArrayAllocator
await
Link copied to clipboard
suspend fun < T > Promise < T >. await (): T
breakAsPairs
Link copied to clipboard
fun < T > List < T >. breakAsPairs (): List < Pair < T , T >>
bytes
Link copied to clipboard
suspend fun MPPFile . bytes (): ByteArray
bytesSync
Link copied to clipboard
fun MPPFile . bytesSync (): ByteArray
calculateDiff
Link copied to clipboard
fun < T > Iterable < T >. calculateDiff (other: Iterable < T >, strictComparison: Boolean = false): Diff < T >
fun < T > Iterable < T >. calculateDiff (other: Iterable < T >, comparisonFun: ( T ?, T ?) -> Boolean ): Diff < T >

Calculating Diff object

calculateStrictDiff
Link copied to clipboard
inline fun < T > Iterable < T >. calculateStrictDiff (other: Iterable < T >): Diff < T >

This method call calculateDiff with strict mode enabled

changeVisibility
Link copied to clipboard
fun View . changeVisibility (show: Boolean = !isShown, goneOnHide: Boolean = true)
collapse
Link copied to clipboard
fun View . collapse (duration: Long = 500)
collapseHorizontally
Link copied to clipboard
fun View . collapseHorizontally (duration: Long = 500)
compareTo
Link copied to clipboard
operator fun Percentage . compareTo (other: Percentage ): Int
convert
Link copied to clipboard
@ JvmName (name = "convertFromT2")
fun < T1 , T2 > SimpleMapper < T1 , T2 >. convert (from: T2 ): T1
@ JvmName (name = "convertFromT1")
fun < T1 , T2 > SimpleMapper < T1 , T2 >. convert (from: T1 ): T2
@ JvmName (name = "convertFromT2")
suspend fun < T1 , T2 > SimpleSuspendableMapper < T1 , T2 >. convert (from: T2 ): T1
@ JvmName (name = "convertFromT1")
suspend fun < T1 , T2 > SimpleSuspendableMapper < T1 , T2 >. convert (from: T1 ): T2
convertToClipboardItem
Link copied to clipboard
inline fun Blob . convertToClipboardItem (): ClipboardItem
copyImageURLToClipboard
Link copied to clipboard
suspend fun copyImageURLToClipboard (imageUrl: String ): Boolean
copyToClipboard
Link copied to clipboard
fun copyToClipboard (text: String ): Boolean
dataOrElse
Link copied to clipboard
inline fun < T > Optional < T >. dataOrElse (block: () -> T ): T

Returns Optional.data if Optional.dataPresented of this is true, or call block and returns the result of it

dataOrNull
Link copied to clipboard
fun < T > Optional < T >. dataOrNull (): T ?

Returns Optional.data if Optional.dataPresented of this is true, or null otherwise

dataOrThrow
Link copied to clipboard
fun < T > Optional < T >. dataOrThrow (throwable: Throwable ): T

Returns Optional.data if Optional.dataPresented of this is true, or throw throwable otherwise

Diff
Link copied to clipboard
inline fun < T > Diff (old: Iterable < T >, new: Iterable < T >): Diff < T >
diff
Link copied to clipboard
inline fun < T > Iterable < T >. diff (other: Iterable < T >, strictComparison: Boolean = false): Diff < T >
inline fun < T > Iterable < T >. diff (other: Iterable < T >, noinline comparisonFun: ( T ?, T ?) -> Boolean ): Diff < T >
fun < K , V > Map < K , V >. diff (other: Map < K , V >, strictComparison: Boolean = false): MapDiff < K , V >
fun < K , V > Map < K , V >. diff (other: Map < K , V >, compareFun: ( K , V , V ) -> Boolean ): MapDiff < K , V >

Compare this with the other one in principle when other is newer than this

disable
Link copied to clipboard
fun View . disable ()
div
Link copied to clipboard
operator fun Percentage . div (i: Byte ): Percentage
operator fun Percentage . div (i: Double ): Percentage
operator fun Percentage . div (i: Float ): Percentage
operator fun Percentage . div (i: Int ): Percentage
operator fun Percentage . div (i: Long ): Percentage
operator fun Percentage . div (i: Short ): Percentage
downloadToTempFile
Link copied to clipboard
fun InputStream . downloadToTempFile (fileName: String = UUID.randomUUID().toString(), fileExtension: String ? = ".temp", folder: File ? = null): File
either
Link copied to clipboard
inline fun < T1 , T2 > Any . either (): <Error class: unknown class>
emptyDiff
Link copied to clipboard
fun < T > emptyDiff (): Diff < T >
enable
Link copied to clipboard
fun View . enable ()
ensureStrictOrNull
Link copied to clipboard
fun Progress . ensureStrictOrNull (): Progress ?

Will return this if Percentage.of1 in `0 .. 1` range

ensureStrictOrThrow
Link copied to clipboard
fun Progress . ensureStrictOrThrow (): Progress

Will return this if Percentage.of1 in `0 .. 1` range. Otherwise, will throw error IllegalArgumentException due to require failure

expand
Link copied to clipboard
fun View . expand (duration: Long = 500, targetWidth: Int = ViewGroup.LayoutParams.MATCH_PARENT, targetHeight: Int = ViewGroup.LayoutParams.WRAP_CONTENT)
expandHorizontally
Link copied to clipboard
fun View . expandHorizontally (duration: Long = 500, targetWidth: Int = ViewGroup.LayoutParams.MATCH_PARENT, targetHeight: Int = ViewGroup.LayoutParams.WRAP_CONTENT)
findViewsByTag
Link copied to clipboard
fun findViewsByTag (view: View , tag: Any ?): List < View >
fun findViewsByTag (viewGroup: ViewGroup , tag: Any ?): List < View >
fun findViewsByTag (view: View , key: Int , tag: Any ?): List < View >
fun findViewsByTag (viewGroup: ViewGroup , key: Int , tag: Any ?): List < View >
findViewsByTag
Link copied to clipboard
fun Activity . findViewsByTag (tag: Any ?): List < View >?
fun Fragment . findViewsByTag (tag: Any ?): List < View >?
fun Activity . findViewsByTag (key: Int , tag: Any ?): List < View >?
fun Fragment . findViewsByTag (key: Int , tag: Any ?): List < View >?
findViewsByTagInActivity
Link copied to clipboard
fun Fragment . findViewsByTagInActivity (tag: Any ?): List < View >?
fun Fragment . findViewsByTagInActivity (key: Int , tag: Any ?): List < View >?
first
Link copied to clipboard
inline fun < T1 , T2 > <Error class: unknown class>. first (t1: T1 ): Either < T1 , T2 >
firstNotNull
Link copied to clipboard
fun < T > Iterable < T ?>. firstNotNull (): <Error class: unknown class>
fixed
Link copied to clipboard
expect fun Double . fixed (signs: Int ): Double
expect fun Float . fixed (signs: Int ): Float
actual fun Double . fixed (signs: Int ): Double
actual fun Float . fixed (signs: Int ): Float
actual fun Double . fixed (signs: Int ): Double
actual fun Float . fixed (signs: Int ): Float
getDp
Link copied to clipboard
inline fun Resources . getDp (resId: Int ): Float
getSp
Link copied to clipboard
inline fun Resources . getSp (resId: Int ): Float
gone
Link copied to clipboard
inline fun View . gone ()
hide
Link copied to clipboard
inline fun View . hide ()
ifFalse
Link copied to clipboard
inline fun < T > Boolean . ifFalse (block: () -> T ): T ?
ifTrue
Link copied to clipboard
inline fun < T > Boolean . ifTrue (block: () -> T ): T ?
intersect
Link copied to clipboard
fun < T : Comparable < T >> ClosedRange < T >. intersect (other: ClosedRange < T >): Pair < T , T >?
fun IntRange . intersect (other: IntRange ): IntRange ?
fun LongRange . intersect (other: LongRange ): LongRange ?
IntersectionObserverOptions
Link copied to clipboard
fun IntersectionObserverOptions (block: IntersectionObserverOptions .() -> Unit = {}): IntersectionObserverOptions
joinTo
Link copied to clipboard
inline fun < I > Iterable < I >. joinTo (separator: I ? = null, prefix: I ? = null, postfix: I ? = null): List < I >
inline fun < I > Iterable < I >. joinTo (separatorFun: ( I ) -> I ?, prefix: I ? = null, postfix: I ? = null): List < I >
inline fun < I , R > Array < I >. joinTo (separator: R ? = null, prefix: R ? = null, postfix: R ? = null, transform: ( I ) -> R ?): Array < R >
inline fun < I , R > Array < I >. joinTo (separatorFun: ( I ) -> R ?, prefix: R ? = null, postfix: R ? = null, transform: ( I ) -> R ?): Array < R >
inline fun < I , R > Iterable < I >. joinTo (separator: R ? = null, prefix: R ? = null, postfix: R ? = null, transform: ( I ) -> R ?): List < R >
inline fun < I , R > Iterable < I >. joinTo (separatorFun: ( I ) -> R ?, prefix: R ? = null, postfix: R ? = null, transform: ( I ) -> R ?): List < R >
letIfFalse
Link copied to clipboard
inline fun < T > Boolean . letIfFalse (block: () -> T ): T ?
letIfTrue
Link copied to clipboard
inline fun < T > Boolean . letIfTrue (block: () -> T ): T ?
mapNotNullA
Link copied to clipboard
inline fun < T , R > Array < T >. mapNotNullA (mapper: ( T ) -> R ?): List < R >
inline fun < T , R > Iterable < T >. mapNotNullA (transform: ( T ) -> R ?): List < R >
mapOnAbsent
Link copied to clipboard
inline fun < T , R > Optional < T >. mapOnAbsent (block: () -> R ): R ?

Will call block when data presented (Optional.dataPresented == true)

mapOnFirst
Link copied to clipboard
inline fun < T1 , R > Either < T1 , *>. mapOnFirst (block: ( T1 ) -> R ): R ?
mapOnPresented
Link copied to clipboard
inline fun < T , R > Optional < T >. mapOnPresented (block: ( T ) -> R ): R ?

Will call block when data presented (Optional.dataPresented == true)

mapOnSecond
Link copied to clipboard
inline fun < T2 , R > Either <*, T2 >. mapOnSecond (block: ( T2 ) -> R ): R ?
minus
Link copied to clipboard
operator fun Percentage . minus (other: Percentage ): Percentage
operator fun Percentage . minus (i: Byte ): Percentage
operator fun Percentage . minus (i: Double ): Percentage
operator fun Percentage . minus (i: Float ): Percentage
operator fun Percentage . minus (i: Int ): Percentage
operator fun Percentage . minus (i: Long ): Percentage
operator fun Percentage . minus (i: Short ): Percentage
observe
Link copied to clipboard
fun ResizeObserver . observe (target: Element , options: ResizeObserverObserveOptions )
onAbsent
Link copied to clipboard
inline fun < T > Optional < T >. onAbsent (block: () -> Unit ): Optional < T >

Will call block when data absent (Optional.dataPresented == false)

onActionOutside
Link copied to clipboard
fun Element . onActionOutside (type: String , options: dynamic = null, callback: ( Event ) -> Unit ): EventListener
onClickOutside
Link copied to clipboard
fun Element . onClickOutside (options: dynamic = null, callback: ( Event ) -> Unit ): EventListener
onFirst
Link copied to clipboard
inline fun < T1 , T2 , E : Either < T1 , T2 >> E . onFirst (block: ( T1 ) -> Unit ): E

Will call block in case when this is EitherFirst

onInvisible
Link copied to clipboard
fun Element . onInvisible (block: Element .( IntersectionObserver ) -> Unit ): IntersectionObserver
onPresented
Link copied to clipboard
inline fun < T > Optional < T >. onPresented (block: ( T ) -> Unit ): Optional < T >

Will call block when data presented (Optional.dataPresented == true)

onRemoved
Link copied to clipboard
fun Node . onRemoved (block: () -> Unit ): MutationObserver
onSecond
Link copied to clipboard
inline fun < T1 , T2 , E : Either < T1 , T2 >> E . onSecond (block: ( T2 ) -> Unit ): E

Will call block in case when this is EitherSecond

onVisibilityChanged
Link copied to clipboard
fun Element . onVisibilityChanged (block: IntersectionObserverEntry .( Float , IntersectionObserver ) -> Unit ): IntersectionObserver
onVisible
Link copied to clipboard
fun Element . onVisible (block: Element .( IntersectionObserver ) -> Unit )
openLink
Link copied to clipboard
fun openLink (link: String , target: String = "_blank", features: String = "")
padEnd
Link copied to clipboard
inline fun < T > List < T >. padEnd (size: Int , o: T ): List < T >
inline fun < T > List < T >. padEnd (size: Int , padBlock: ( Int ) -> T ): List < T >
inline fun < T > Sequence < T >. padEnd (size: Int , o: T ): Sequence < T >
inline fun < T > Sequence < T >. padEnd (size: Int , padBlock: ( Int ) -> T ): Sequence < T >
padStart
Link copied to clipboard
inline fun < T > List < T >. padStart (size: Int , o: T ): List < T >
inline fun < T > List < T >. padStart (size: Int , padBlock: ( Int ) -> T ): List < T >
inline fun < T > Sequence < T >. padStart (size: Int , o: T ): Sequence < T >
inline fun < T > Sequence < T >. padStart (size: Int , padBlock: ( Int ) -> T ): Sequence < T >
padWith
Link copied to clipboard
inline fun < T > List < T >. padWith (size: Int , inserter: ( List < T >) -> List < T >): List < T >
inline fun < T > Sequence < T >. padWith (size: Int , inserter: ( Sequence < T >) -> Sequence < T >): Sequence < T >
plus
Link copied to clipboard
operator fun Percentage . plus (other: Percentage ): Percentage
operator fun Percentage . plus (i: Byte ): Percentage
operator fun Percentage . plus (i: Double ): Percentage
operator fun Percentage . plus (i: Float ): Percentage
operator fun Percentage . plus (i: Int ): Percentage
operator fun Percentage . plus (i: Long ): Percentage
operator fun Percentage . plus (i: Short ): Percentage
readBytes
Link copied to clipboard
fun MPPFile . readBytes (): ByteArray
readBytesPromise
Link copied to clipboard
fun MPPFile . readBytesPromise (): Promise < ByteArray >
rem
Link copied to clipboard
operator fun Percentage . rem (i: Byte ): Percentage
operator fun Percentage . rem (i: Double ): Percentage
operator fun Percentage . rem (i: Float ): Percentage
operator fun Percentage . rem (i: Int ): Percentage
operator fun Percentage . rem (i: Long ): Percentage
operator fun Percentage . rem (i: Short ): Percentage
repeatOnFailure
Link copied to clipboard
inline fun < R > repeatOnFailure (onFailure: ( Throwable ) -> Boolean , action: () -> R ): Result < R >

Executes the given action until getting of successful result specified number of times.

inline fun < R > repeatOnFailure (times: Int , onEachFailure: ( Throwable ) -> Unit = {}, action: ( Int ) -> R ): Optional < R >

Executes the given action until getting of successful result specified number of times.

reversed
Link copied to clipboard
fun < T > Diff < T >. reversed (): Diff < T >

Reverse this. Result will contain Diff.added on Diff.removed (and vice-verse), all the Diff.replaced values will be reversed too

fun < K , V > MapDiff < K , V >. reversed (): MapDiff < K , V >

Reverse this. Result will contain MapDiff.added on MapDiff.removed (and vice-verse), all the MapDiff.changed values will be reversed too

second
Link copied to clipboard
inline fun < T1 , T2 > <Error class: unknown class>. second (t2: T2 ): Either < T1 , T2 >
selectFile
Link copied to clipboard
fun selectFile (inputSetup: ( HTMLInputElement ) -> Unit = {}, onFailure: ( Throwable ) -> Unit = {}, onFile: ( MPPFile ) -> Unit )
show
Link copied to clipboard
inline fun View . show ()
simpleMapper
Link copied to clipboard
inline fun < T1 , T2 > simpleMapper (noinline t1: ( T2 ) -> T1 , noinline t2: ( T1 ) -> T2 ): SimpleMapperImpl < T1 , T2 >
simpleSuspendableMapper
Link copied to clipboard
inline fun < T1 , T2 > simpleSuspendableMapper (noinline t1: suspend ( T2 ) -> T1 , noinline t2: suspend ( T1 ) -> T2 ): SimpleSuspendableMapperImpl < T1 , T2 >
StrictDiff
Link copied to clipboard
inline fun < T > StrictDiff (old: Iterable < T >, new: Iterable < T >): Diff < T >
times
Link copied to clipboard
operator fun Percentage . times (i: Byte ): Percentage
operator fun Percentage . times (i: Double ): Percentage
operator fun Percentage . times (i: Float ): Percentage
operator fun Percentage . times (i: Int ): Percentage
operator fun Percentage . times (i: Long ): Percentage
operator fun Percentage . times (i: Short ): Percentage
toArrayBuffer
Link copied to clipboard
fun ByteArray . toArrayBuffer (): ArrayBuffer
toByteArray
Link copied to clipboard
fun ArrayBuffer . toByteArray (): ByteArray
fun DataView . toByteArray (): ByteArray
toCoercedByte
Link copied to clipboard
fun Int . toCoercedByte (): Byte

Convert this to Byte with bounds of Byte.MIN_VALUE and Byte.MAX_VALUE

fun Long . toCoercedByte (): Byte

Convert this to Byte with bounds of Byte.MIN_VALUE and Byte.MAX_VALUE

fun Short . toCoercedByte (): Byte

Convert this to Byte with bounds of Byte.MIN_VALUE and Byte.MAX_VALUE

toCoercedInt
Link copied to clipboard
fun Long . toCoercedInt (): Int

Convert this to Int with bounds of Int.MIN_VALUE and Int.MAX_VALUE

toCoercedShort
Link copied to clipboard
fun Int . toCoercedShort (): Short

Convert this to Short with bounds of Short.MIN_VALUE and Short.MAX_VALUE

fun Long . toCoercedShort (): Short

Convert this to Short with bounds of Short.MIN_VALUE and Short.MAX_VALUE

toDataView
Link copied to clipboard
fun ByteArray . toDataView (): DataView
toggleEnabledState
Link copied to clipboard
fun View . toggleEnabledState (enabled: Boolean )
toggleExpandHorizontallyState
Link copied to clipboard
fun View . toggleExpandHorizontallyState (duration: Long = 500): Boolean
toggleExpandState
Link copied to clipboard
fun View . toggleExpandState (duration: Long = 500): Boolean
toggleVisibility
Link copied to clipboard
fun View . toggleVisibility (goneOnHide: Boolean = true)
triggerDownloadFile
Link copied to clipboard
fun triggerDownloadFile (filename: String , fileLink: String )
withReplaced
Link copied to clipboard
fun < T > Iterable < T >. withReplaced (t: T , block: ( T ) -> T ): List < T >
withReplacedAt
Link copied to clipboard
fun < T > Iterable < T >. withReplacedAt (i: Int , block: ( T ) -> T ): List < T >