public static enum TransitRoutePlanOption.TransitPolicy extends java.lang.Enum<TransitRoutePlanOption.TransitPolicy>
Enum Constant and Description |
---|
EBUS_NO_SUBWAY
公交检索策略常量:不含地铁
|
EBUS_TIME_FIRST
公交检索策略常量:时间优先
|
EBUS_TRANSFER_FIRST
公交检索策略常量:最少换乘
|
EBUS_WALK_FIRST
公交检索策略常量:最少步行距离
|
Modifier and Type | Method and Description |
---|---|
int |
getInt()
获取该枚举对象的 int 值
|
static TransitRoutePlanOption.TransitPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransitRoutePlanOption.TransitPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransitRoutePlanOption.TransitPolicy EBUS_TIME_FIRST
public static final TransitRoutePlanOption.TransitPolicy EBUS_TRANSFER_FIRST
public static final TransitRoutePlanOption.TransitPolicy EBUS_WALK_FIRST
public static final TransitRoutePlanOption.TransitPolicy EBUS_NO_SUBWAY
public static TransitRoutePlanOption.TransitPolicy[] values()
for (TransitRoutePlanOption.TransitPolicy c : TransitRoutePlanOption.TransitPolicy.values()) System.out.println(c);
public static TransitRoutePlanOption.TransitPolicy 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 getInt()