Package com.wombat.mamda
Class MamdaOrderImbalanceSide
- java.lang.Object
-
- com.wombat.mamda.MamdaOrderImbalanceSide
-
public final class MamdaOrderImbalanceSide extends java.lang.Objectclass Imbalance Side
-
-
Field Summary
Fields Modifier and Type Field Description static MamdaOrderImbalanceSideASK_SIDEstatic intASK_SIDE_VALUEASK_SIDE_IMBALANCEstatic MamdaOrderImbalanceSideBID_SIDEstatic intBID_SIDE_VALUEBID_SIDE_IMBALANCEstatic MamdaOrderImbalanceSideNO_IMBALANCE_SIDEstatic intNO_IMBALANCE_VALUENO_IMBALANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MamdaOrderImbalanceSideenumObjectForValue(int value)Return an instance of a MamdaOrderImbalanceSide corresponding to the specified integer value.booleanequals(MamdaOrderImbalanceSide imbalanceSide)Compare the two types for equality.intgetValue()Returns the integer value for the type.java.lang.StringtoString()Returns the stringified name for the enumerated type.static java.lang.StringvalueToString(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:
toStringin 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.
-
-