public enum Color extends Enum<Color>
| Enum Constant and Description |
|---|
AMBER |
AMBER_FLASH |
AMBER_LOW |
GREEN |
GREEN_FLASH |
GREEN_LOW |
OFF |
RED |
RED_FLASH |
RED_LOW |
YELLOW |
YELLOW_FLASH |
| Modifier and Type | Method and Description |
|---|---|
byte |
getByte() |
static Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Color OFF
public static final Color RED
public static final Color RED_LOW
public static final Color AMBER
public static final Color AMBER_LOW
public static final Color YELLOW
public static final Color GREEN
public static final Color GREEN_LOW
public static final Color RED_FLASH
public static final Color AMBER_FLASH
public static final Color YELLOW_FLASH
public static final Color GREEN_FLASH
public static Color[] values()
for (Color c : Color.values()) System.out.println(c);
public static Color 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 getByte()
Copyright © 2014. All Rights Reserved.