public enum TradeState extends Enum<TradeState>
Enum Constant and Description |
---|
FINISHED
已完成
|
FINISHED_WITH_REFUND
已完成有退款
|
Modifier and Type | Field and Description |
---|---|
private int |
state |
Modifier and Type | Method and Description |
---|---|
static TradeState |
deserialize(int state)
Deserialize moment task state.
|
int |
getState()
Gets state.
|
static TradeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TradeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TradeState FINISHED
public static final TradeState FINISHED_WITH_REFUND
public static TradeState[] values()
for (TradeState c : TradeState.values()) System.out.println(c);
public static TradeState 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 int getState()
public static TradeState deserialize(int state)
state
- the stateCopyright © 2025. All rights reserved.