public enum TradingStatus extends Enum<TradingStatus>
Enum Constant and Description |
---|
ACTIVE
Trading is active.
|
HALTED
Trading is halted.
|
UNDEFINED
Trading status is undefined, unknown or inapplicable.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns integer code that is used in flag bits.
|
static TradingStatus |
valueOf(int code)
Returns status by integer code bit pattern.
|
static TradingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TradingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TradingStatus UNDEFINED
public static final TradingStatus HALTED
public static final TradingStatus ACTIVE
public static TradingStatus[] values()
for (TradingStatus c : TradingStatus.values()) System.out.println(c);
public static TradingStatus 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 static TradingStatus valueOf(int code)
code
- integer code.ArrayIndexOutOfBoundsException
- if code is invalid.public int getCode()
Copyright © 2002–2023 Devexperts LLC. All rights reserved.