kite-core / jp.co.cyberagent.kite.core / KiteState
KiteState¶
interface KiteState<out T>
Represents a read-only state with single updatable value.
Properties¶
| Name | Summary |
|---|---|
| value | abstract val value:T |
Extension Functions¶
| Name | Summary |
|---|---|
| asKiteContextElement | fun <T :Any>T.asKiteContextElement():Pair<KClass<*>,Any>Creates a KiteContextElement with the KClass |
| getValue | operator fun <T>KiteState<T>.getValue(thisRef:Nothing?, prop:KProperty<*>):TSupports delegated property. |
Inheritors¶
| Name | Summary |
|---|---|
| KiteMutableState | interface KiteMutableState<T> :KiteState<T>Represents a mutable KiteState that provided a setter for value. Do not implemented this interface directly, instead inherits the abstract class AbstractKiteMutableState. |