public static enum TrafficLights.Orientation extends java.lang.Enum<TrafficLights.Orientation>
Enum Constant and Description |
---|
DOWN
Semafor je vzhůru nohama, červená dole.
|
LEFT
Semafor je orientován vodorovně, červená vlevo.
|
RIGHT
Semafor je orientován vodorovně, červená vpravo.
|
UP
Semafor je orientován běžným způsobem, červená nahoře.
|
Modifier and Type | Method and Description |
---|---|
static TrafficLights.Orientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrafficLights.Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficLights.Orientation UP
public static final TrafficLights.Orientation RIGHT
public static final TrafficLights.Orientation DOWN
public static final TrafficLights.Orientation LEFT
public static TrafficLights.Orientation[] values()
for (TrafficLights.Orientation c : TrafficLights.Orientation.values()) System.out.println(c);
public static TrafficLights.Orientation 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