dave08
01/08/2018, 3:37 PMenum 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?