dG
08/12/2019, 9:00 AMpublic 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?diesieben07
08/12/2019, 9:04 AMenumValueOf
, 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.