Enum Class BookingStatus
- All Implemented Interfaces:
Serializable,Comparable<BookingStatus>,java.lang.constant.Constable
The enum describing various booking statuses
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the associated event is not booked and information associated with it will not be provided, but the event could be bookedIndicates if the associated event is booked and information associated with it will be providedIndicates if the associated event is buyableIndicates if the associated event is not available for booking -
Method Summary
Modifier and TypeMethodDescriptionstatic BookingStatusgetLiveBookingStatus(String liveBookingStatus) Maps the providedStringto aBookingStatusstatic BookingStatusReturns the enum constant of this class with the specified name.static BookingStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Buyable
Indicates if the associated event is buyable -
Bookable
Indicates that the associated event is not booked and information associated with it will not be provided, but the event could be booked -
Booked
Indicates if the associated event is booked and information associated with it will be provided
-
-
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
-
getLiveBookingStatus
Maps the providedStringto aBookingStatus- Parameters:
liveBookingStatus- - aStringdescribing aBookingStatus- Returns:
- - a calculated
BookingStatus
-