public enum ActionStatus extends Enum<ActionStatus>
Action.| Enum Constant and Description |
|---|
DROP_OFF
A commodity drop off will occur at this location.
|
PICK_UP
A commodity pickup will occur at this location.
|
START
The start of a transports route.
|
| 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 ActionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionStatus START
public static final ActionStatus PICK_UP
public static final ActionStatus DROP_OFF
private final String status
public static ActionStatus[] values()
for (ActionStatus c : ActionStatus.values()) System.out.println(c);
public static ActionStatus 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<ActionStatus>