public static enum InventoryOperationResult.Type extends Enum<InventoryOperationResult.Type>
Enum Constant and Description |
---|
CANCELLED
An operation was cancelled by a third party (eg.
|
ERROR
The inventory operation failed because an unexpected
condition occurred.
|
FAILURE
The inventory operation failed for an expected reason (such
as the inventory being full or not accepting items of a supplied
type.
|
SUCCESS
The inventory operation succeeded.
|
UNDEFINED
The actual result of the operation is undefined, this probably
indicates that something went wrong with the operation that the
inventory couldn't handle or didn't expect.
|
Modifier and Type | Method and Description |
---|---|
static InventoryOperationResult.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryOperationResult.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryOperationResult.Type UNDEFINED
public static final InventoryOperationResult.Type SUCCESS
public static final InventoryOperationResult.Type FAILURE
public static final InventoryOperationResult.Type ERROR
public static final InventoryOperationResult.Type CANCELLED
public static InventoryOperationResult.Type[] values()
for (InventoryOperationResult.Type c : InventoryOperationResult.Type.values()) System.out.println(c);
public static InventoryOperationResult.Type 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