Value

data class Value<T>(val value: T) : ObservableOptional<T>

The BaseObservable has a result, this result could be null.

Parameters

T

the type of the Value

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

the value of this result. Can be null.

Link copied to clipboard
open override val valueOrNull: T?

The value of T or null if this result is Nothing.

Functions

Link copied to clipboard

Casts an ObservableOptional to an ObservableOptional its subtype R or returns defaultValue if no such casting is possible.

Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
inline fun <R : T, T> ObservableOptional<T>.resultValueOrDefault(defaultValue: R): R

Casts the value of an ObservableOptional to its subtype R or returns defaultValue if no such casting is possible.

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