public enum ErrorIndicator extends java.lang.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 java.lang.String[] |
names()
Returns an array containing the names of the error indicator constants.
|
java.lang.String |
toString()
Returns the string message of the error indicator.
|
byte |
value()
Gets the byte value of the error indicator.
|
static ErrorIndicator |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte value()
public byte getCode()
public java.lang.String toString()
toString in class java.lang.Enum<ErrorIndicator>public static ErrorIndicator fromValue(byte value) throws java.lang.IllegalArgumentException
value - The byte value of the error indicator.java.lang.IllegalArgumentException - If the byte value does not correspond to any error indicator.public static java.lang.String[] names()