public enum RoadTypePriority extends Enum<RoadTypePriority>
RoadTypes.| Enum Constant and Description |
|---|
AVOID
Completely ignores a
RoadType while performing route calculations. |
HIGH
Sets the
RoadType preference to highest while performing route calculations. |
LOW
Sets the
RoadType preference to LOW while performing route calculations. |
MEDIUM
Sets the
RoadType preference to MEDIUM(higher than LOW but lower than HIGH) while performing route calculations. |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the priority of this
RoadType. |
static RoadTypePriority |
toRoadTypePriority(String input)
Converts the specified value to corresponding RoadTypePriority choice.
|
static RoadTypePriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoadTypePriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoadTypePriority AVOID
RoadType while performing route calculations.public static final RoadTypePriority LOW
RoadType preference to LOW while performing route calculations.public static final RoadTypePriority MEDIUM
RoadType preference to MEDIUM(higher than LOW but lower than HIGH) while performing route calculations.public static final RoadTypePriority HIGH
RoadType preference to highest while performing route calculations.public static RoadTypePriority[] values()
for (RoadTypePriority c : RoadTypePriority.values()) System.out.println(c);
public static RoadTypePriority valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RoadTypePriority toRoadTypePriority(String input)
For e.g. RoadTypePriority.toRoadTypePriority("high") gives RoadTypePriority.HIGH
input - A String, road type priority value.