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