The sequence of values for your Enum.
The sequence of values for your Enum. You will typically want
to implement this in your extending class as a val
so that withValue
and friends are as efficient as possible.
Feel free to implement this however you'd like (including messing around with ordering, etc) if that fits your needs better.
Map of ValueType to EntryType members
Tries to get an EntryType by the supplied value.
Tries to get an EntryType by the supplied value. The value corresponds to the .value of the case objects implementing EntryType
Like Enumeration's withValue
, this method will throw if the value does not match any of the values'
.value
values.
Optionally returns an EntryType for a given value.