public enum OrderStatus extends Enum<OrderStatus>
| Enum Constant and Description |
|---|
Cancelled |
Completed |
In_Progress |
Pending |
Reconfirm |
Unknown |
| Modifier and Type | Field and Description |
|---|---|
String |
displayStr |
Integer |
value |
| Modifier and Type | Method and Description |
|---|---|
static OrderStatus |
fromValue(Integer value) |
static OrderStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderStatus Pending
public static final OrderStatus Completed
public static final OrderStatus In_Progress
public static final OrderStatus Cancelled
public static final OrderStatus Reconfirm
public static final OrderStatus Unknown
public static OrderStatus[] values()
for (OrderStatus c : OrderStatus.values()) System.out.println(c);
public static OrderStatus 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 static OrderStatus fromValue(Integer value) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2026. All rights reserved.