W3cubDocs

/Kotlin

javaClass

Platform and version requirements: JVM (1.0)
inline val <T : Any> T.javaClass: Class<T>

Returns the runtime Java class of this object.

Platform and version requirements: JVM (1.0)
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.

© 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.jvm/java-class.html