I’m trying to get the java class literal for a `Ma...
# announcements
m
I’m trying to get the java class literal for a
Map<String, Set<String>>
. How do I do that?
Map<String, Set<String>>::class.javaObjectType
complains that
only classes are allowed on the left hand side of a class literal
,
(Map<String, Set<String>>)::class.javaObjectType
complains that
Interface Map does not have constructors
, and
(mapOf<String, Set<String>>())::class.javaObjectType
gives me a
kotlin.collections.EmptyMap
.