public enum BookingStatus extends Enum<BookingStatus>
| Modifier and Type | Method and Description |
|---|---|
static BookingStatus |
forValue(String value) |
String |
getValue() |
static BookingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BookingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BookingStatus PENDING
public static final BookingStatus BOOKED
public static final BookingStatus BOTH
public static BookingStatus[] values()
for (BookingStatus c : BookingStatus.values()) System.out.println(c);
public static BookingStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public static BookingStatus forValue(String value)
Copyright © 2019. All rights reserved.