public static enum RideStatusLog.Status extends Enum<RideStatusLog.Status>
Enum Constant and Description |
---|
ACCEPTED
A supplier accepted the ride, no driver was assigned yet.
|
AT_DROP_OFF
The vehicle arrived at the drop-off point.
|
AT_PICKUP
The vehicle is waiting at the pickup point.
|
CANCELLED
The ride was cancelled (either by the driver or by the passenger)
|
COMPLETED
The ride was completed.
|
DRIVER_ASSIGNED
A driver was assigned to the ride.
|
DRIVER_EN_ROUTE
The vehicle is on the way to the pickup point.
|
FAILURE
Ride closed after a duration with no updates.
|
PASSENGER_ON_BOARD
The vehicle is on the way to the drop-off point.
|
PROCESSING
The request is being processed, looking for a supplier.
|
REJECTED
None of the suppliers accepted the offer.
|
UNRECOGNIZED
Unrecognized status of the ride
|
Modifier and Type | Method and Description |
---|---|
static RideStatusLog.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RideStatusLog.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RideStatusLog.Status PROCESSING
public static final RideStatusLog.Status REJECTED
public static final RideStatusLog.Status ACCEPTED
public static final RideStatusLog.Status DRIVER_ASSIGNED
public static final RideStatusLog.Status DRIVER_EN_ROUTE
public static final RideStatusLog.Status AT_PICKUP
public static final RideStatusLog.Status PASSENGER_ON_BOARD
public static final RideStatusLog.Status AT_DROP_OFF
public static final RideStatusLog.Status COMPLETED
public static final RideStatusLog.Status CANCELLED
public static final RideStatusLog.Status FAILURE
public static final RideStatusLog.Status UNRECOGNIZED
public static RideStatusLog.Status[] values()
for (RideStatusLog.Status c : RideStatusLog.Status.values()) System.out.println(c);
public static RideStatusLog.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