public enum PowerOnIndicator extends Enum<PowerOnIndicator>
| Enum Constant and Description |
|---|
beeper |
beeperVibrator |
none |
vibrator |
| Modifier and Type | Method and Description |
|---|---|
static PowerOnIndicator |
fromValue(byte value)
Gets a power on indicator from its byte value.
|
byte |
getCode()
Gets the byte value of the power on indicator.
|
static String[] |
names()
Returns an array containing the names of the power on indicator constants.
|
String |
toString()
Returns the string message of the power on indicator.
|
static PowerOnIndicator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerOnIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerOnIndicator none
public static final PowerOnIndicator beeper
public static final PowerOnIndicator vibrator
public static final PowerOnIndicator beeperVibrator
public static PowerOnIndicator[] values()
for (PowerOnIndicator c : PowerOnIndicator.values()) System.out.println(c);
public static PowerOnIndicator 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 byte getCode()
public String toString()
toString in class Enum<PowerOnIndicator>public static PowerOnIndicator fromValue(byte value) throws IllegalArgumentException
value - The byte value of the power on indicator.IllegalArgumentException - If the byte value does not correspond to any power on indicator.public static String[] names()