← Docs
kotlin-stdlib / kotlin.reflect / KClass / isCompanion

isCompanion

JVM
1.1
abstract val isCompanion : Boolean
(source)

true if this class is a companion object. See the Kotlin language documentation for more information.

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 .