public enum CommodityStatus extends Enum<CommodityStatus>
Commodity.| Enum Constant and Description |
|---|
CANCELLED
The commodity was cancelled to be picked up.
|
DROPPED_OFF
The commodity was dropped off by a transport.
|
INACTIVE
The commodity is currently not being routed.
|
PICKED_UP
The commodity was picked up by a transport.
|
WAITING
The commodity is waiting to be picked up.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
status
The string representation of the status.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(String status)
Checks if this status is the same as the provided status.
|
String |
toString() |
static CommodityStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommodityStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommodityStatus INACTIVE
public static final CommodityStatus WAITING
public static final CommodityStatus PICKED_UP
public static final CommodityStatus DROPPED_OFF
public static final CommodityStatus CANCELLED
private final String status
public static CommodityStatus[] values()
for (CommodityStatus c : CommodityStatus.values()) System.out.println(c);
public static CommodityStatus 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 boolean equals(String status)
status - a string of statuspublic String toString()
toString in class Enum<CommodityStatus>