say I have an object with a Java class in it. (passed from jackson) and if its an enum I want to list all the enum values can I do that.
Copy code
when (value) {
String::class.java -> "a string"
BigDecimal::class.java -> "A number"
Enum::class.java -> "One of the values" // don't know how to fill this in
}