Does `public static <T extends Enum<T>&gt...
# announcements
d
Does
public static <T extends Enum<T>> T valueOf(Class<T> enumType, String name)
of
Java.lang.Enum
not have an equivalent in Kotlin? If not, why not?
d
enumValueOf
, but that does not work on a
Class
object, it requires a reified type parameter. But you can call
java.lang.Enum.valueOf
from Kotlin as well, should you need it.