public static enum TruckingParam.Policy extends java.lang.Enum<TruckingParam.Policy>
枚举常量和说明 |
---|
AVOID_HIGHWAY
参考实时路况,不走高速
|
AVOID_HIGHWAY_LESS_FEE
参考实时路况,尽量不走高速,并且少收费
|
AVOID_JAM_HIGHWAY
参考实时路况,尽量躲避拥堵,并且不走高速
|
AVOID_JAM_HIGHWAY_LESS_FEE
参考实时路况,尽量躲避拥堵,尽量不走高速,并且少收费
|
AVOID_JAM_LESS_FEE
参考实时路况,尽量躲避拥堵,并且少收费
|
HIGHWAY_FIRST
参考实时路况,高速优先
|
HIGHWAY_FIRST_AVOID_JAM
参考实时路况,高速优先,尽量躲避拥堵
|
LEAST_FEE
参考实时路况,少收费
|
REAL_TRAFFIC
[默认] 参考实时路况,尽量躲避拥堵
|
限定符和类型 | 字段和说明 |
---|---|
int |
policyValue |
限定符和类型 | 方法和说明 |
---|---|
static TruckingParam.Policy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TruckingParam.Policy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TruckingParam.Policy REAL_TRAFFIC
public static final TruckingParam.Policy AVOID_HIGHWAY
public static final TruckingParam.Policy LEAST_FEE
public static final TruckingParam.Policy AVOID_JAM_HIGHWAY
public static final TruckingParam.Policy AVOID_HIGHWAY_LESS_FEE
public static final TruckingParam.Policy AVOID_JAM_LESS_FEE
public static final TruckingParam.Policy AVOID_JAM_HIGHWAY_LESS_FEE
public static final TruckingParam.Policy HIGHWAY_FIRST
public static final TruckingParam.Policy HIGHWAY_FIRST_AVOID_JAM
public static TruckingParam.Policy[] values()
for (TruckingParam.Policy c : TruckingParam.Policy.values()) System.out.println(c);
public static TruckingParam.Policy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值