public enum ZendriveUserMode extends java.lang.Enum<ZendriveUserMode>
Drive
, whether the user was a driver or a passengerEnum Constant and Description |
---|
DRIVER
Indicates that the user was in the driver seat.
|
PASSENGER
Indicates that the user was in the passenger seat.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Provides a value for each enum value that is stable across releases.
|
static ZendriveUserMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveUserMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveUserMode DRIVER
public static final ZendriveUserMode PASSENGER
public static ZendriveUserMode[] values()
for (ZendriveUserMode c : ZendriveUserMode.values()) System.out.println(c);
public static ZendriveUserMode 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 nullpublic int getValue()