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