Class Constants

java.lang.Object
com.graphhopper.util.Constants

public class Constants extends Object
Defining several important constants for GraphHopper. Partially taken from Lucene.
  • Field Details

    • JAVA_VERSION

      public static final String JAVA_VERSION
      The value of System.getProperty("java.version"). *
    • OS_NAME

      public static final String OS_NAME
      The value of System.getProperty("os.name"). *
    • LINUX

      public static final boolean LINUX
      True iff running on Linux.
    • WINDOWS

      public static final boolean WINDOWS
      True iff running on Windows.
    • MAC_OS_X

      public static final boolean MAC_OS_X
      True iff running on Mac OS X
    • OS_ARCH

      public static final String OS_ARCH
    • OS_VERSION

      public static final String OS_VERSION
    • JAVA_VENDOR

      public static final String JAVA_VENDOR
    • JVM_SPEC_VERSION

      public static final String JVM_SPEC_VERSION
    • JRE_IS_MINIMUM_JAVA9

      public static final boolean JRE_IS_MINIMUM_JAVA9
    • VERSION_NODE

      public static final int VERSION_NODE
      See Also:
    • VERSION_EDGE

      public static final int VERSION_EDGE
      See Also:
    • VERSION_EM

      public static final int VERSION_EM
      See Also:
    • VERSION_SHORTCUT

      public static final int VERSION_SHORTCUT
      See Also:
    • VERSION_NODE_CH

      public static final int VERSION_NODE_CH
      See Also:
    • VERSION_GEOMETRY

      public static final int VERSION_GEOMETRY
      See Also:
    • VERSION_TURN_COSTS

      public static final int VERSION_TURN_COSTS
      See Also:
    • VERSION_LOCATION_IDX

      public static final int VERSION_LOCATION_IDX
      See Also:
    • VERSION_KV_STORAGE

      public static final int VERSION_KV_STORAGE
      See Also:
    • VERSION

      public static final String VERSION
      The version without the snapshot string
    • BUILD_DATE

      public static final String BUILD_DATE
    • GIT_INFO

      public static final GitInfo GIT_INFO
      Details about the git commit this artifact was built for, can be null (if not built using maven)
    • SNAPSHOT

      public static final boolean SNAPSHOT
  • Constructor Details

    • Constants

      public Constants()
  • Method Details

    • getVersions

      public static String getVersions()
    • getMajorVersion

      public static String getMajorVersion()