NonNullState

interface NonNullState<T> : State<T>

Definition a Hikage runtime state interface for non-nullable type.

Inheritors

Properties

Link copied to clipboard
abstract var value: T

The current value of the state.

Functions

Link copied to clipboard
abstract operator override fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
abstract fun observe(observer: StateObserver<T>): StateSubscription
open fun observe(observer: (T) -> Unit): StateSubscription

Observe the state changes.

Link copied to clipboard
abstract operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)