doc / ch.tutteli.atrium.core.polyfills / kotlin.reflect.KClass

Extensions for kotlin.reflect.KClass

cast

expect fun <T : Any> KClass<T>.cast(any: Any?): T

Casts the given any to the type of the given KClass.

fullName

expect val KClass<*>.fullName: String

The full name of this KClass.

expect fun <T : Any> KClass<out T>.fullName(obj: T): String

Returns the full name of this KClass.