TrafficLights.Light
,
ale dynamické rozhraní umožňující implementovat i jiné než tříbarevné
semafory.@Deprecated public static enum TrafficLights.Light extends java.lang.Enum<TrafficLights.Light>
Enum Constant and Description |
---|
GREEN
Deprecated.
Zelené světlo, u normální orientace dole.
|
RED
Deprecated.
Červené světlo, u normální orientace nahoře.
|
YELLOW
Deprecated.
Žluté světlo, uprostřed.
|
Modifier and Type | Method and Description |
---|---|
static TrafficLights.Light |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static TrafficLights.Light[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficLights.Light GREEN
public static final TrafficLights.Light YELLOW
public static final TrafficLights.Light RED
public static TrafficLights.Light[] values()
for (TrafficLights.Light c : TrafficLights.Light.values()) System.out.println(c);
public static TrafficLights.Light 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 null