ValueProperty

class ValueProperty<I, O>(initial: I, beforeGet: DslValue<O, *>.(I) -> Unit = {}, beforeSet: DslValue<O, *>.(O) -> Unit = {}, getTransform: (I) -> O, setTransform: (O) -> I, afterGet: DslValue<O, *>.(O) -> Unit = {}, afterSet: DslValue<O, *>.(I) -> Unit = {}, getBypassedHooksValue: (DslValue.BypassedHooks<O>) -> Unit = {})(source)

Constructors

Link copied to clipboard
constructor(initial: I, beforeGet: DslValue<O, *>.(I) -> Unit = {}, beforeSet: DslValue<O, *>.(O) -> Unit = {}, getTransform: (I) -> O, setTransform: (O) -> I, afterGet: DslValue<O, *>.(O) -> Unit = {}, afterSet: DslValue<O, *>.(I) -> Unit = {}, getBypassedHooksValue: (DslValue.BypassedHooks<O>) -> Unit = {})

Properties

Functions

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