Returns an Int representation of the enum.
Returns an Int representation of the enum. The first listed case is 1, the second 2, and so on.
Returns a string representation of the enum.
Returns a string representation of the enum.
Provides the class name of the enumeration.
Provides the class name of the enumeration.
This is useful for traits that build on top of EnumApi
.
The first case defined in the enum.
The first case defined in the enum.
Returns the case whose Int representation matches, if there is one.
Returns the case whose Int representation matches, if there is one.
Returns the case whose String representation matches, if there is one.
Returns the case whose String representation matches, if there is one.
The last case defined in the enum.
The last case defined in the enum.
The full set of enumeration values.
The full set of enumeration values.
Returns a Long representation of the enum.
Returns a Long representation of the enum. The first listed case is 1, the second 2, and so on.
Returns a Short representation of the enum.
Returns a Short representation of the enum. The first listed case is 1, the second 2, and so on.
Returns the case whose Long representation matches, if there is one.
Returns the case whose Long representation matches, if there is one.
Returns the case whose Short representation matches, if there is one.
Returns the case whose Short representation matches, if there is one.
Returns the case defined just after the given enum, if one exists.
Returns the case defined just after the given enum, if one exists.
As nextImpl
but modular: the last defined case wraps around to the first one.
As nextImpl
but modular: the last defined case wraps around to the first one.
An instance of Ordering
based on the definition order of the cases.
An instance of Ordering
based on the definition order of the cases.
Returns the case defined just before the given enum, if one exists.
Returns the case defined just before the given enum, if one exists.
As prevImpl
but modular: the first defined case wraps around to the last one.
As prevImpl
but modular: the first defined case wraps around to the last one.
The API exposed by enumerations created with the @enum macro. Unlike Scala's Enumeration interface, all auto-generated functions are protected so the user can choose which functions to expose on their type.
The type of the enumeration.