Example usage for Java java.lang Enum fields, constructors, methods, implement or subclass
The text is from its open source code.
String | name The name of this enum constant, as declared in the enum declaration. |
int | ordinal The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero). |
boolean | equals(Object other) Returns true if the specified object is equal to this enum constant. |
Class> | getClass() Returns the runtime class of this Object . |
Class | getDeclaringClass() Returns the Class object corresponding to this enum constant's enum type. |
String | toString() Returns the name of this enum constant, as contained in the declaration. |
T | valueOf(Class Returns the enum constant of the specified enum type with the specified name. |