public static enum ColorSensor.Color extends Enum<ColorSensor.Color>
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
GREEN |
NONE |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
static ColorSensor.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorSensor.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorSensor.Color RED
public static final ColorSensor.Color GREEN
public static final ColorSensor.Color BLUE
public static final ColorSensor.Color YELLOW
public static final ColorSensor.Color WHITE
public static final ColorSensor.Color BLACK
public static final ColorSensor.Color BROWN
public static final ColorSensor.Color NONE
public static ColorSensor.Color[] values()
for (ColorSensor.Color c : ColorSensor.Color.values()) System.out.println(c);
public static ColorSensor.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 null