public static enum InventoryTransactionResult.Type extends Enum<InventoryTransactionResult.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 InventoryTransactionResult.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryTransactionResult.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryTransactionResult.Type UNDEFINED
public static final InventoryTransactionResult.Type SUCCESS
public static final InventoryTransactionResult.Type FAILURE
public static final InventoryTransactionResult.Type ERROR
public static final InventoryTransactionResult.Type CANCELLED
public static InventoryTransactionResult.Type[] values()
for (InventoryTransactionResult.Type c : InventoryTransactionResult.Type.values()) System.out.println(c);
public static InventoryTransactionResult.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