public enum DriverDistractionState extends Enum<DriverDistractionState>
| Enum Constant and Description |
|---|
DD_OFF
Driver distraction rules are NOT in effect.
|
DD_ON
Driver distraction rules are in effect.
|
| Modifier and Type | Method and Description |
|---|---|
static DriverDistractionState |
valueForString(String value)
Convert String to DriverDistractionState
|
static DriverDistractionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DriverDistractionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DriverDistractionState DD_ON
public static final DriverDistractionState DD_OFF
public static DriverDistractionState[] values()
for (DriverDistractionState c : DriverDistractionState.values()) System.out.println(c);
public static DriverDistractionState 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 nullpublic static DriverDistractionState valueForString(String value)
value - String