ResultCompat

class ResultCompat<T>(val result: Result<T>)(source)

ResultCompat.

It is intended to solve the problem of being unable to obtain kotlin.Result in java.

Since

0.0.7

Constructors

Link copied to clipboard
constructor(result: Result<T>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns true if result instance represents a failed outcome. In this case ResultCompat.isSuccess returns false.

Link copied to clipboard

Returns true if result instance represents a successful outcome. In this case ResultCompat.isFailure return false .

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun getOrNull(): T?
Link copied to clipboard
open override fun toString(): String