Enum AvoidanceType
- java.lang.Object
-
- java.lang.Enum<AvoidanceType>
-
- global.maplink.trip.schema.v1.payload.AvoidanceType
-
- All Implemented Interfaces:
Serializable,Comparable<AvoidanceType>
public enum AvoidanceType extends Enum<AvoidanceType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRIDGESFERRIESTOLL_GATESTOLL_ROADSTUNNELS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AvoidanceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AvoidanceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TUNNELS
public static final AvoidanceType TUNNELS
-
BRIDGES
public static final AvoidanceType BRIDGES
-
FERRIES
public static final AvoidanceType FERRIES
-
TOLL_ROADS
public static final AvoidanceType TOLL_ROADS
-
TOLL_GATES
public static final AvoidanceType TOLL_GATES
-
-
Method Detail
-
values
public static AvoidanceType[] 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 (AvoidanceType c : AvoidanceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvoidanceType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-