public static enum CancellationInfo.Status extends Enum<CancellationInfo.Status>
Enum Constant and Description |
---|
ACCEPTED
The cancellation request was accepted.
|
PROCESSING
The cancellation request has been received and is now being processed.
|
REJECTED
The cancellation request was rejected.
|
UNKNOWN
The cancellation request is in an unknown state.
|
Modifier and Type | Method and Description |
---|---|
static CancellationInfo.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CancellationInfo.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CancellationInfo.Status PROCESSING
CancellationInfo
is the
result of Ride.getCancellationInfo()
.
When receiving CancellationInfo
as a result of DemandClient.cancelRide(String, String)
,
this will never be the result.public static final CancellationInfo.Status ACCEPTED
public static final CancellationInfo.Status REJECTED
public static final CancellationInfo.Status UNKNOWN
public static CancellationInfo.Status[] values()
for (CancellationInfo.Status c : CancellationInfo.Status.values()) System.out.println(c);
public static CancellationInfo.Status 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