open class Property<T> : Any

Read-only property of type T with context information, whether the property contains a default value. Usable as property delegate.

Fields

Name Description
var value: T
var isDefault: Boolean
val isNotDefault: Boolean

Constructors

<init>

constructor(value: T, isDefault: Boolean)

Read-only property of type T with context information, whether the property contains a default value. Usable as property delegate.

Parameters

Name Description
value: T

actual value of the property

isDefault: Boolean

true, if value constitutes a default value

Methods

getValue

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

Read method for property delegation.

Parameters

Name Description
thisRef: Any?
prop: KProperty<*>

ReturnValue

Name Description
T

leftMerge

infix fun leftMerge(other: Property<T>): Property<T>

Merges the other property into this property.

Parameters

Name Description
other: Property<T>

property to be merged with lower prioritization

ReturnValue

Name Description
Property<T>

new property, whereas this property and not-default-properties are prioritized