State

sealed class State<out T, out E>

Types

Data
Link copied to clipboard
common
data class Data<out T, out E>(data: T) : State<T, E>
Empty
Link copied to clipboard
common
class Empty<out T, out E> : State<T, E>
Error
Link copied to clipboard
common
data class Error<out T, out E>(error: E) : State<T, E>
Loading
Link copied to clipboard
common
class Loading<out T, out E> : State<T, E>

Functions

dataValue
Link copied to clipboard
common
fun dataValue(): T?
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
errorValue
Link copied to clipboard
common
fun errorValue(): E?
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
isEmpty
Link copied to clipboard
common
fun isEmpty(): Boolean
isError
Link copied to clipboard
common
fun isError(): Boolean
isLoading
Link copied to clipboard
common
fun isLoading(): Boolean
isSuccess
Link copied to clipboard
common
fun isSuccess(): Boolean
toString
Link copied to clipboard
common
open fun toString(): String

Inheritors

State
Link copied to clipboard
State
Link copied to clipboard
State
Link copied to clipboard
State
Link copied to clipboard

Extensions

nullAsEmpty
Link copied to clipboard
common
inline fun <T, E> State<T, E>?.nullAsEmpty(): State<T, E>
nullAsLoading
Link copied to clipboard
common
inline fun <T, E> State<T, E>?.nullAsLoading(): State<T, E>