public static enum Constants.LightStatus extends Enum<Constants.LightStatus>
Enum Constant and Description |
---|
GREEN
A green light means go.
|
RED
Red means stop.
|
YELLOW
Yellow light means a red light is coming soon.
|
Modifier and Type | Method and Description |
---|---|
static Constants.LightStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constants.LightStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.LightStatus GREEN
public static final Constants.LightStatus YELLOW
public static final Constants.LightStatus RED
public static Constants.LightStatus[] values()
for (Constants.LightStatus c : Constants.LightStatus.values()) System.out.println(c);
public static Constants.LightStatus 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 nullCopyright © 2013. All rights reserved.