W3cubDocs

/Kotlin

javaClass

inline val <T : Any> T.javaClass: Class<T>

Platform and version requirements: JVM

Returns the runtime Java class of this object.

inline val <T : Any> KClass<T>.javaClass: Class<KClass<T>>
Deprecated: Use 'java' property to get Java class corresponding to this Kotlin class or cast this instance to Any if you really want to get the runtime Java class of this implementation of KClass.

Platform and version requirements: JVM

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/java-class.html