public static enum DrivingRoutePlanOption.DrivingPolicy extends java.lang.Enum<DrivingRoutePlanOption.DrivingPolicy>
枚举常量和说明 |
---|
ECAR_AVOID_JAM
驾车策略: 躲避拥堵
|
ECAR_DIS_FIRST
驾乘检索策略常量:最短距离
|
ECAR_FEE_FIRST
驾乘检索策略常量:较少费用
|
ECAR_TIME_FIRST
驾乘检索策略常量:时间优先
|
限定符和类型 | 方法和说明 |
---|---|
int |
getInt()
获取枚举值
|
static DrivingRoutePlanOption.DrivingPolicy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DrivingRoutePlanOption.DrivingPolicy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DrivingRoutePlanOption.DrivingPolicy ECAR_AVOID_JAM
public static final DrivingRoutePlanOption.DrivingPolicy ECAR_TIME_FIRST
public static final DrivingRoutePlanOption.DrivingPolicy ECAR_DIS_FIRST
public static final DrivingRoutePlanOption.DrivingPolicy ECAR_FEE_FIRST
public static DrivingRoutePlanOption.DrivingPolicy[] values()
for (DrivingRoutePlanOption.DrivingPolicy c : DrivingRoutePlanOption.DrivingPolicy.values()) System.out.println(c);
public static DrivingRoutePlanOption.DrivingPolicy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getInt()