public static enum RidePayment.PaymentStatus extends Enum<RidePayment.PaymentStatus>
Enum Constant and Description |
---|
CANCELLED
when the ride is cancelled
|
COMPLETED
when the payment is complete
|
FAILED
failure
|
PENDING
before completion
|
UNKNOWN
unknown
|
Modifier and Type | Method and Description |
---|---|
static RidePayment.PaymentStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RidePayment.PaymentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RidePayment.PaymentStatus UNKNOWN
public static final RidePayment.PaymentStatus PENDING
public static final RidePayment.PaymentStatus COMPLETED
public static final RidePayment.PaymentStatus CANCELLED
public static final RidePayment.PaymentStatus FAILED
public static RidePayment.PaymentStatus[] values()
for (RidePayment.PaymentStatus c : RidePayment.PaymentStatus.values()) System.out.println(c);
public static RidePayment.PaymentStatus 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 null