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