Enum ECause
- java.lang.Object
-
- java.lang.Enum<ECause>
-
- org.onebusaway.transit_data.model.service_alerts.ECause
-
- All Implemented Interfaces:
Serializable
,Comparable<ECause>
public enum ECause extends Enum<ECause>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCIDENT
CONSTRUCTION
DEMONSTRATION
HOLIDAY
MAINTENANCE
MEDICAL_EMERGENCY
OTHER_CAUSE
POLICE_ACTIVITY
STRIKE
TECHNICAL_PROBLEM
UNKNOWN_CAUSE
WEATHER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ECause
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_CAUSE
public static final ECause UNKNOWN_CAUSE
-
OTHER_CAUSE
public static final ECause OTHER_CAUSE
-
TECHNICAL_PROBLEM
public static final ECause TECHNICAL_PROBLEM
-
STRIKE
public static final ECause STRIKE
-
DEMONSTRATION
public static final ECause DEMONSTRATION
-
ACCIDENT
public static final ECause ACCIDENT
-
HOLIDAY
public static final ECause HOLIDAY
-
WEATHER
public static final ECause WEATHER
-
MAINTENANCE
public static final ECause MAINTENANCE
-
CONSTRUCTION
public static final ECause CONSTRUCTION
-
POLICE_ACTIVITY
public static final ECause POLICE_ACTIVITY
-
MEDICAL_EMERGENCY
public static final ECause MEDICAL_EMERGENCY
-
-
Method Detail
-
values
public static ECause[] 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 (ECause c : ECause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECause 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
-
-