public enum TransferPreference extends java.lang.Enum<TransferPreference>
The transfer preference enumeration of traffic transfer.
| Enum Constant and Description |
|---|
BUS
Bus is preferential.
|
NO_SUBWAY
Not taking subway.
|
NONE
No travel preference.
|
SUBWAY
Subway is preferential.
|
| Modifier and Type | Method and Description |
|---|---|
static TransferPreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransferPreference[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final TransferPreference BUS
Bus is preferential.
public static final TransferPreference NO_SUBWAY
Not taking subway.
public static final TransferPreference NONE
No travel preference.
public static final TransferPreference SUBWAY
Subway is preferential.
public static TransferPreference[] values()
for (TransferPreference c : TransferPreference.values())
System.out.println(c);
public static TransferPreference 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