public static enum DemoCommands.Holiday extends Enum<DemoCommands.Holiday>
| Modifier and Type | Method and Description |
|---|---|
static DemoCommands.Holiday |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DemoCommands.Holiday[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DemoCommands.Holiday XMAS
public static final DemoCommands.Holiday EASTER
public static DemoCommands.Holiday[] values()
for (DemoCommands.Holiday c : DemoCommands.Holiday.values()) System.out.println(c);
public static DemoCommands.Holiday valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015 LSST. All rights reserved.