enums
2 tutorials tagged “enums”.
- Enum Methods and Enums in Switchvalues(), valueOf(), ordinal(), name() and compareTo() on enums, the exception for unknown names, enums in switch, and what the compiler generates.
- Enums in JavaA fixed set of named constants as a real type: enums with fields, constructors and methods, constant-specific behavior, and enums implementing interfaces.