Enum Class PriorityCode

java.lang.Object
java.lang.Enum<PriorityCode>
com.graphhopper.routing.util.PriorityCode
All Implemented Interfaces:
Serializable, Comparable<PriorityCode>, Constable

public enum PriorityCode extends Enum<PriorityCode>
Used to store a priority value in the way flags of an edge. Used in combination with PriorityWeighting
Author:
Peter Karich
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static PriorityCode[] 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

      public static PriorityCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • getFactor

      public static double getFactor(int value)
    • getValue

      public static double getValue(int value)
    • worse

      public PriorityCode worse()
    • valueOf

      public static PriorityCode valueOf(int integ)
      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 name
      NullPointerException - if the argument is null
    • better

      public PriorityCode better()