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 withName
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.
Method that returns a Seq of A objects that the macro was able to find.
Method that returns a Seq of A objects that the macro was able to find.
You will want to use this in some way to implement your values method. In fact, if you aren't using this method...why are you even bothering with this lib?
Map of EntryType object names to EntryTypes
Map of EntryType object names to EntryTypes
Tries to get an EntryType by the supplied value.
Tries to get an EntryType by the supplied value. The name corresponds to the .value of the case objects implementing EntryType
Like Enumeration's withName
, this method will throw if the name does not match any of the values'
.entryName values.
Optionally returns an EntryType for a given value.
Optionally returns an EntryType for a given value.
Value enum with IntEnumEntry entries