← Docs
kotlin-stdlib / kotlin.jvm / declaringJavaClass

declaringJavaClass

JVM
1.7
inline val < E : Enum < E > > Enum < E > . declaringJavaClass : Class < E >
(source)

Returns a Java Class instance of the enum the given constant belongs to.

See Also

java.lang.Enum.getDeclaringClass

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 .