W3cubDocs

/Kotlin

Getter

Platform and version requirements: JVM (1.0)
interface Getter<T, out V> : KProperty.Getter<V>, (T) -> V

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

Can be used as a function that takes an argument of type T (the receiver) and returns the value of the property type V.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-property1/-getter.html