Name | |
---|---|
String | toString() |
int | getValue() |
boolean | equals(MamdaOrderImbalanceSide imbalanceSide) |
String | valueToString(int value) |
MamdaOrderImbalanceSide | enumObjectForValue(int value) |
Name | |
---|---|
final int | BID_SIDE_VALUE |
final MamdaOrderImbalanceSide | BID_SIDE |
final int | ASK_SIDE_VALUE |
final MamdaOrderImbalanceSide | ASK_SIDE |
final int | NO_IMBALANCE_VALUE |
final MamdaOrderImbalanceSide | NO_IMBALANCE_SIDE |
inline String toString()
Return: Name for the type.
Returns the stringified name for the enumerated type.
inline int getValue()
Return: The integer type.
Returns the integer value for the type. This value can be used in switch statements against the public XXX_VALUE static members of the class.
inline boolean equals(
MamdaOrderImbalanceSide imbalanceSide
)
Parameters:
Return: Whether the two objects are equal.
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.
static inline String valueToString(
int value
)
Parameters:
Return: The string name value of the specified MamdaOrderImbalanceSide integer value.
Utility method for mapping type integer values to corresponding string values.
Returns “UNKNOWN” is the int type value is not recognised.
static inline MamdaOrderImbalanceSide enumObjectForValue(
int value
)
Parameters:
Return: Instance of a MamdaOrderImbalanceSide if a mapping exists.
Return an instance of a MamdaOrderImbalanceSide corresponding to the specified integer value. Returns null if the integer value is not recognised.
static final int BID_SIDE_VALUE = 0;
BID_SIDE_IMBALANCE
static final MamdaOrderImbalanceSide BID_SIDE = new
MamdaOrderImbalanceSide (valueToString (BID_SIDE_VALUE), BID_SIDE_VALUE);
static final int ASK_SIDE_VALUE = 1;
ASK_SIDE_IMBALANCE
static final MamdaOrderImbalanceSide ASK_SIDE = new
MamdaOrderImbalanceSide (valueToString (ASK_SIDE_VALUE), ASK_SIDE_VALUE);
static final int NO_IMBALANCE_VALUE = 2;
NO_IMBALANCE
static final MamdaOrderImbalanceSide NO_IMBALANCE_SIDE = new
MamdaOrderImbalanceSide (valueToString (NO_IMBALANCE_VALUE), NO_IMBALANCE_VALUE);
Updated on 2023-03-31 at 15:30:33 +0100