← Docs
kotlin-stdlib / kotlin.reflect / KProperty2 / Getter

Getter

JVM
1.0
interface Getter < D , E , out V > :
KProperty.Getter < V > ,
( D , E ) -> V

(source)

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

Can be used as a function that takes an argument of type D (the first receiver), an argument of type E (the second receiver) and returns the value of the property type V .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .