Accessor

JVM
1.0
interface Accessor<out V>
(source)

Represents a property accessor, which is a get or set method declared alongside the property. See the Kotlin language documentation for more information.

Parameters

V - the type of the property, which it is an accessor of.

Properties

JVM
1.0

property

The property which this accessor is originated from.

abstract val property: KProperty<V>

Inheritors

JVM
1.0

Getter

Getter of the property is a get method declared alongside the property.

interface Getter<out V> : KProperty.Accessor<V>, KFunction<V>
JVM
1.0

Setter

Setter of the property is a set method declared alongside the property.

interface Setter<V> : KProperty.Accessor<V>, KFunction<Unit>