Package com.wombat.mamda
Class MamdaOrderImbalanceSide
- java.lang.Object
-
- com.wombat.mamda.MamdaOrderImbalanceSide
-
public final class MamdaOrderImbalanceSide extends java.lang.Object
class Imbalance Side
-
-
Field Summary
Fields Modifier and Type Field Description static MamdaOrderImbalanceSide
ASK_SIDE
static int
ASK_SIDE_VALUE
ASK_SIDE_IMBALANCEstatic MamdaOrderImbalanceSide
BID_SIDE
static int
BID_SIDE_VALUE
BID_SIDE_IMBALANCEstatic MamdaOrderImbalanceSide
NO_IMBALANCE_SIDE
static int
NO_IMBALANCE_VALUE
NO_IMBALANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MamdaOrderImbalanceSide
enumObjectForValue(int value)
Return an instance of a MamdaOrderImbalanceSide corresponding to the specified integer value.boolean
equals(MamdaOrderImbalanceSide imbalanceSide)
Compare the two types for equality.int
getValue()
Returns the integer value for the type.java.lang.String
toString()
Returns the stringified name for the enumerated type.static java.lang.String
valueToString(int value)
Utility method for mapping type integer values to corresponding string values.
-
-
-
Field Detail
-
BID_SIDE_VALUE
public static final int BID_SIDE_VALUE
BID_SIDE_IMBALANCE- See Also:
- Constant Field Values
-
BID_SIDE
public static final MamdaOrderImbalanceSide BID_SIDE
-
ASK_SIDE_VALUE
public static final int ASK_SIDE_VALUE
ASK_SIDE_IMBALANCE- See Also:
- Constant Field Values
-
ASK_SIDE
public static final MamdaOrderImbalanceSide ASK_SIDE
-
NO_IMBALANCE_VALUE
public static final int NO_IMBALANCE_VALUE
NO_IMBALANCE- See Also:
- Constant Field Values
-
NO_IMBALANCE_SIDE
public static final MamdaOrderImbalanceSide NO_IMBALANCE_SIDE
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the stringified name for the enumerated type.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Name for the type.
-
getValue
public int getValue()
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.- Returns:
- The integer type.
-
equals
public boolean equals(MamdaOrderImbalanceSide imbalanceSide)
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.- Parameters:
imbalanceSide
- The object to check equality against.- Returns:
- Whether the two objects are equal.
-
valueToString
public static java.lang.String valueToString(int value)
Utility method for mapping type integer values to corresponding string values. Returns "UNKNOWN" is the int type value is not recognised.- Parameters:
value
- The int value for a MamdaOrderImbalanceSide- Returns:
- The string name value of the specified MamdaOrderImbalanceSide integer value.
-
enumObjectForValue
public static MamdaOrderImbalanceSide enumObjectForValue(int value)
Return an instance of a MamdaOrderImbalanceSide corresponding to the specified integer value. Returns null if the integer value is not recognised.- Parameters:
value
- Int value for a MamdaOrderImbalanceSide- Returns:
- Instance of a MamdaOrderImbalanceSide if a mapping exists.
-
-