public static enum WarningEvent.WarningType extends java.lang.Enum<WarningEvent.WarningType>
The WarningType defines the type of a WarningEvent.
There are three different WarningType defined:
WarningType if you are a wrong way driver.
WarningType if there is a wrong way driver in front of you.
WarningType if there is no wrong way driver.
| Enum Constant and Description |
|---|
IAmWWD
You are a wrong way driver.
|
NoWWD
No wrong way driver has been detected.
|
WWDInFront
A wrong way driver is coming towards you.
|
| Modifier and Type | Method and Description |
|---|---|
static WarningEvent.WarningType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WarningEvent.WarningType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WarningEvent.WarningType IAmWWD
public static final WarningEvent.WarningType WWDInFront
public static final WarningEvent.WarningType NoWWD
public static WarningEvent.WarningType[] values()
for (WarningEvent.WarningType c : WarningEvent.WarningType.values()) System.out.println(c);
public static WarningEvent.WarningType 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