public enum BatteryCommand extends Enum<BatteryCommand>
| Enum Constant and Description |
|---|
BATTERY1_OFF |
BATTERY1_ON |
BATTERY2_OFF |
BATTERY2_ON |
BATTERY3_OFF |
BATTERY3_ON |
| Modifier and Type | Method and Description |
|---|---|
static BatteryCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatteryCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryCommand BATTERY1_ON
public static final BatteryCommand BATTERY1_OFF
public static final BatteryCommand BATTERY2_ON
public static final BatteryCommand BATTERY2_OFF
public static final BatteryCommand BATTERY3_ON
public static final BatteryCommand BATTERY3_OFF
public static BatteryCommand[] values()
for (BatteryCommand c : BatteryCommand.values()) System.out.println(c);
public static BatteryCommand 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 © 2018 Space Applications Services. All rights reserved.