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