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