public static enum TrafficAlert.AlertType extends Enum<TrafficAlert.AlertType>
Enum Constant and Description |
---|
HIGH_TRAFFIC |
RECOVERED_TRAFFIC |
Modifier and Type | Method and Description |
---|---|
static TrafficAlert.AlertType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrafficAlert.AlertType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficAlert.AlertType HIGH_TRAFFIC
public static final TrafficAlert.AlertType RECOVERED_TRAFFIC
public static TrafficAlert.AlertType[] values()
for (TrafficAlert.AlertType c : TrafficAlert.AlertType.values()) System.out.println(c);
public static TrafficAlert.AlertType 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 © 2019. All rights reserved.