public static enum TransitParam.Policy extends java.lang.Enum<TransitParam.Policy>
| Enum Constant and Description |
|---|
LEAST_TIME
较快捷
|
LEAST_TRANSFER
少换乘
|
LEAST_WALKING
少走路
|
| Modifier and Type | Method and Description |
|---|---|
static TransitParam.Policy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransitParam.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransitParam.Policy LEAST_TIME
public static final TransitParam.Policy LEAST_TRANSFER
public static final TransitParam.Policy LEAST_WALKING
public static TransitParam.Policy[] values()
for (TransitParam.Policy c : TransitParam.Policy.values()) System.out.println(c);
public static TransitParam.Policy 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