public static enum CommandsInterface.RadioState extends Enum<CommandsInterface.RadioState>
Enum Constant and Description |
---|
RADIO_OFF |
RADIO_ON |
RADIO_UNAVAILABLE |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable() |
boolean |
isOn() |
static CommandsInterface.RadioState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandsInterface.RadioState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandsInterface.RadioState RADIO_OFF
public static final CommandsInterface.RadioState RADIO_UNAVAILABLE
public static final CommandsInterface.RadioState RADIO_ON
public static CommandsInterface.RadioState[] values()
for (CommandsInterface.RadioState c : CommandsInterface.RadioState.values()) System.out.println(c);
public static CommandsInterface.RadioState 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 nullpublic boolean isOn()
public boolean isAvailable()