public enum CancelReason extends java.lang.Enum<CancelReason>
| Enum Constant and Description |
|---|
_INVALID |
BY_ADMIN
The order cancellation was initiated by an admin.
|
BY_EXCHANGE
The order cancellation was initiated by the exchange itself.
|
CANCEL_REQUESTED
The order was cancelled as a result of a user request to
cancel it.
|
ORDER_MODIFIED
The order cancellation was initiated automatically after a
modification.
|
| Modifier and Type | Field and Description |
|---|---|
byte |
val |
| Modifier and Type | Method and Description |
|---|---|
byte |
get() |
static CancelReason |
get(byte value) |
static java.util.Collection<CancelReason> |
validValues() |
static CancelReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CancelReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CancelReason CANCEL_REQUESTED
public static final CancelReason BY_EXCHANGE
public static final CancelReason ORDER_MODIFIED
public static final CancelReason BY_ADMIN
public static final CancelReason _INVALID
public static CancelReason[] values()
for (CancelReason c : CancelReason.values()) System.out.println(c);
public static CancelReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte get()
public static CancelReason get(byte value)
public static java.util.Collection<CancelReason> validValues()