https://kotlinlang.org logo
n

natpryce

01/16/2016, 8:54 AM
Enum elements don't have an inherent value. But they can have fields that hold additional information. If you need to map from a value of a field of an element to an enum you will have to implement that with a function or
Map