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