public enum OrderState extends Enum<OrderState> implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Enum Constant and Description |
---|
CANCELLED |
CONFIRMED |
CREATED |
FULFILLED |
IN_PREPARATION |
IN_TRANSIT |
READY_FOR_PICKUP |
REJECTED |
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OrderState> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static OrderState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final OrderState CREATED
public static final OrderState CONFIRMED
public static final OrderState REJECTED
public static final OrderState CANCELLED
public static final OrderState IN_PREPARATION
public static final OrderState READY_FOR_PICKUP
public static final OrderState IN_TRANSIT
public static final OrderState FULFILLED
public static final Parcelable.Creator<OrderState> CREATOR
public static OrderState[] values()
for (OrderState c : OrderState.values()) System.out.println(c);
public static OrderState 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 int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable