TunnelCategory (API Reference)
Package com.here.sdk.transport
Enum Class TunnelCategory
- All Implemented Interfaces:
Serializable,Comparable<TunnelCategory>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TunnelCategoryReturns the enum constant of this class with the specified name.static TunnelCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
B
Category B. Prohibited for the transport of hazardous substances which could cause a very large explosion.
-
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
Category D. The same restrictions as for C plus hazardous goods which could cause a large fire.
-
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
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
-