W3cubDocs

/Kotlin

javaPrimitiveType

val <T : Any> KClass<T>.javaPrimitiveType: Class<T>?

Platform and version requirements: JVM

Returns a Java Class instance representing the primitive type corresponding to the given KClass if it exists.

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