I have an enum: ```enum class CpuAbi(val type: St...
# announcements
d
I have an enum:
Copy code
enum class CpuAbi(val type: String) {
	ARM64_V8A("arm64-v8a"), ARMEABI_V7A("armeabi-v7a"), ARMEABI("armeabi")
}
and I want to get an enum value using the type field.. currently
enumValueOf("armeabi-v7a".toUpperCase().replace("-","_"))
, which uses the
name
only is possible... is there a better way to do this?