CSSafeVariableImpl

class CSSafeVariableImpl<T>(value: T, onChangeUnsafe: ArgFun<T>? = null) : CSSafeVariable<T>

Constructors

Link copied to clipboard
constructor(value: T, onChangeUnsafe: ArgFun<T>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var value: T

Functions

Link copied to clipboard
open override fun compareAndSet(value: T, newValue: T): Boolean
Link copied to clipboard
open override fun getAndSet(newValue: T): T
Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
open operator override fun setValue(thisRef: Any?, property: KProperty<*>, value: T)
Link copied to clipboard
fun <Item : CSHasDestruct> CSValue<Int>.update(list: MutableList<Item>, function: (index: Int) -> Item)
fun CSValue<Int>.update(newCount: Int, onAdd: ArgFun<Int>? = null, onRemove: ArgFun<Int>? = null)