Enum Class TunnelCategory

java.lang.Object
java.lang.Enum<TunnelCategory>
com.here.sdk.transport.TunnelCategory
All Implemented Interfaces:
Serializable, Comparable<TunnelCategory>, Constable

public enum TunnelCategory extends Enum<TunnelCategory>

Specifies the tunnel categories.

Tunnels are categorized from B (low risk, few restrictions) to E (high risk) based on their safety features and the potential danger posed by the goods transported through them.

  • Enum Constant Details

    • B

      public static final TunnelCategory B

      Category B. Prohibited for the transport of hazardous substances which could cause a very large explosion.

    • C

      public static final TunnelCategory C

      Category C. The same restriction as for B, plus hazardous goods which could cause a large explosion or the extensive release of toxic substances.

    • D

      public static final TunnelCategory D

      Category D. The same restrictions as for C plus hazardous goods which could cause a large fire.

    • E

      public static final TunnelCategory E

      Category E. Prohibited for the transport of all hazardous substances. There are some exceptions for certain radioactive substances, clinical waste and samples.

  • Method Details

    • values

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