Package com.graphhopper.routing.util
Enum Class PriorityCode
- All Implemented Interfaces:
Serializable
,Comparable<PriorityCode>
,Constable
Used to store a priority value in the way flags of an edge. Used in combination with
PriorityWeighting
- Author:
- Peter Karich
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbetter()
static double
getFactor
(int value) int
getValue()
static double
getValue
(int value) static PriorityCode
valueOf
(int integ) Returns the enum constant of this class with the specified name.static PriorityCode
Returns the enum constant of this class with the specified name.static PriorityCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.worse()
-
Enum Constant Details
-
EXCLUDE
-
REACH_DESTINATION
-
VERY_BAD
-
BAD
-
AVOID_MORE
-
AVOID
-
SLIGHT_AVOID
-
UNCHANGED
-
SLIGHT_PREFER
-
PREFER
-
VERY_NICE
-
BEST
-
-
Field Details
-
VALUES
-
-
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
-
getValue
public int getValue() -
getFactor
public static double getFactor(int value) -
getValue
public static double getValue(int value) -
worse
-
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:
integ
- 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
-
better
-