public enum Side extends Enum<Side>
Enum Constant and Description |
---|
BUY
Buy side.
|
CROSS
Cross side.
|
SELL
Sell side.
|
UNSPECIFIED
Unknown side.
|
Modifier and Type | Method and Description |
---|---|
static Side |
forValue(int value)
Convert int to enumeration.
|
static Side |
forValue(String value)
Convert String to enumeration.
|
int |
getIntValue()
Get int value.
|
String |
getStringValue()
Get String value.
|
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 BUY
public static final Side SELL
public static final Side CROSS
public static final Side UNSPECIFIED
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 int getIntValue()
public String getStringValue()
public static Side forValue(int value)
value
- int value.Copyright © 2010–2020 Onix Solutions. All rights reserved.