public static enum DemoCommands.Number extends Enum<DemoCommands.Number>
| Modifier and Type | Method and Description |
|---|---|
static DemoCommands.Number |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DemoCommands.Number[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DemoCommands.Number ONE
public static final DemoCommands.Number TWO
public static final DemoCommands.Number THREE
public static final DemoCommands.Number FOUR
public static DemoCommands.Number[] values()
for (DemoCommands.Number c : DemoCommands.Number.values()) System.out.println(c);
public static DemoCommands.Number 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.