[`KClass`](
[To see links please register here]
) is Kotlin's equivalent to `java.lang.Class`.
An instance of `KClass` can be obtained with `::class` on either a type or a value (i.e. `String::class`, `3.8::class`).
If you require a Java `Class` instance from a `KClass` you can use the [`java` extension property](
[To see links please register here]
):
val kotlinClass: KClass<String> = String::class
val javaClass: Class<String> = String::class.java
Keep in mind that if you want to use kotlin-reflect's [full features](
[To see links please register here]
) you will need [`kotlin-reflect`](
[To see links please register here]
) on the classpath.
So in your case, the equivalent would be `Map<KClass<*>, Int>`.