SettableProperty

class SettableProperty<T>(value: T, isDefault: Boolean = false) : Property<T>

Mutable property usable as property delegate.

Parameters

value

actual value of the property

isDefault

true, if value constitutes a default value and is set to false, when value is overwritten

Constructors

Link copied to clipboard
constructor(property: Property<T>)
constructor(value: T, isDefault: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var value: T

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, prop: KProperty<*>): T

Read method for property delegation.

Link copied to clipboard
infix fun leftMerge(other: Property<T>): Property<T>

Merges the other property into this property.

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

Set method for property delegation.