public interface IEnumType extends IStringRepresentation
The methods declared here are automatically implemented by each enum type because they are implicitly inherited from class java.lang.Enum.
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getDeclaringClass()
Returns the Class object corresponding to this enum constant's enum type.
|
java.lang.String |
name()
Returns the name of this enum constant, exactly as declared in its enum declaration.
|
int |
ordinal()
Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
|
asString
java.lang.String name()
int ordinal()
java.lang.Class<?> getDeclaringClass()