Package com.baidu.mapapi.search.route
Enum Class DrivingRoutePlanOption.DrivingTrafficPolicy
java.lang.Object
java.lang.Enum<DrivingRoutePlanOption.DrivingTrafficPolicy>
com.baidu.mapapi.search.route.DrivingRoutePlanOption.DrivingTrafficPolicy
- All Implemented Interfaces:
Serializable,Comparable<DrivingRoutePlanOption.DrivingTrafficPolicy>,Constable
- Enclosing class:
- DrivingRoutePlanOption
public static enum DrivingRoutePlanOption.DrivingTrafficPolicy
extends Enum<DrivingRoutePlanOption.DrivingTrafficPolicy>
驾车路线路况策略
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
ROUTE_PATH
驾车路线不含路况 -
ROUTE_PATH_AND_TRAFFIC
驾车路线含路况
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInt
public int getInt()获取枚举值- Returns:
- 枚举值
-