Enum TunnelCategory
Package com.here.sdk.transport
Enum TunnelCategory
- java.lang.Object
-
- java.lang.Enum<TunnelCategory>
-
- com.here.sdk.transport.TunnelCategory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TunnelCategory>
public enum TunnelCategory extends java.lang.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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TunnelCategoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TunnelCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static TunnelCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TunnelCategory c : TunnelCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TunnelCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-