public static enum Order.State extends Enum<Order.State>
Enum Constant and Description |
---|
AWAITING_NEXT_DELIVERY_ATTEMPT |
COULD_NOT_DELIVER |
COURIER_ASSIGNED |
DELIVERED |
DELIVERING |
DELIVERY_FAILED |
HELD_FOR_PICKUP |
IN_TRANSIT |
PREPARING |
READY_FOR_DELIVERY |
READY_FOR_DISPATCH |
RETURN_TO_SENDER |
Modifier and Type | Method and Description |
---|---|
static Order.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Order.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Order.State AWAITING_NEXT_DELIVERY_ATTEMPT
public static final Order.State COULD_NOT_DELIVER
public static final Order.State COURIER_ASSIGNED
public static final Order.State DELIVERED
public static final Order.State DELIVERING
public static final Order.State DELIVERY_FAILED
public static final Order.State HELD_FOR_PICKUP
public static final Order.State IN_TRANSIT
public static final Order.State PREPARING
public static final Order.State READY_FOR_DELIVERY
public static final Order.State READY_FOR_DISPATCH
public static final Order.State RETURN_TO_SENDER
public static Order.State[] values()
for (Order.State c : Order.State.values()) System.out.println(c);
public static Order.State 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 nullCopyright © 2012–2022. All rights reserved.