public enum PaymentState extends Enum<PaymentState> implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Enum Constant and Description |
---|
CREDITED |
OPEN |
PAID |
PARTIALLY_PAID |
PARTIALLY_REFUNDED |
REFUNDED |
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PaymentState> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static PaymentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentState[] |
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 PaymentState OPEN
public static final PaymentState PAID
public static final PaymentState REFUNDED
public static final PaymentState CREDITED
public static final PaymentState PARTIALLY_PAID
public static final PaymentState PARTIALLY_REFUNDED
public static final Parcelable.Creator<PaymentState> CREATOR
public static PaymentState[] values()
for (PaymentState c : PaymentState.values()) System.out.println(c);
public static PaymentState 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