https://kotlinlang.org logo
Title
u

user

07/11/2022, 9:11 AM
Kotlin: Generic types in Kotlin To get the class definition to be used for example for json deserialization the following can be used in Kotlin: Map::class.java A example usage is the following: val map = mapper.readValue(json, Map::class.java) But now how to have the generic type definition? Something like this does not compile: val map = mapper.readValue(decodedString, Map::class.java) So my question is: What is the generic equivalent to *::class.java