Package com.wombat.mamda
Class MamdaOrderImbalanceType
- java.lang.Object
-
- com.wombat.mamda.MamdaOrderImbalanceType
-
public final class MamdaOrderImbalanceType extends java.lang.Object
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MamdaOrderImbalanceType
enumObjectForValue(int value)
Return an instance of a MamdaOrderImbalanceType corresponding to the specified integer value.boolean
equals(MamdaOrderImbalanceType imbDataType)
Compare the two types for equality.int
getValue()
Returns the integer value for the type.static boolean
isMamdaImbalanceOrder(int value)
static boolean
isMamdaOrderImbalanceType(int value)
static int
stringToValue(java.lang.String 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
-
MARKET_IMBALANCE_BUY_VALUE
public static final int MARKET_IMBALANCE_BUY_VALUE
MARKET_IMBALANCE_BUY- See Also:
- Constant Field Values
-
MARKET_IMBALANCE_BUY
public static final MamdaOrderImbalanceType MARKET_IMBALANCE_BUY
-
MARKET_IMBALANCE_SELL_VALUE
public static final int MARKET_IMBALANCE_SELL_VALUE
MARKET_IMBALANCE_SELL- See Also:
- Constant Field Values
-
MARKET_IMBALANCE_SELL
public static final MamdaOrderImbalanceType MARKET_IMBALANCE_SELL
-
NO_MARKET_IMBALANCE_VALUE
public static final int NO_MARKET_IMBALANCE_VALUE
NO_MARKET_IMBALANCE- See Also:
- Constant Field Values
-
NO_MARKET_IMBALANCE
public static final MamdaOrderImbalanceType NO_MARKET_IMBALANCE
-
MOC_IMBALANCE_BUY_VALUE
public static final int MOC_IMBALANCE_BUY_VALUE
MOC_IMBALANCE_BUY- See Also:
- Constant Field Values
-
MOC_IMBALANCE_BUY
public static final MamdaOrderImbalanceType MOC_IMBALANCE_BUY
-
MOC_IMBALANCE_SELL_VALUE
public static final int MOC_IMBALANCE_SELL_VALUE
MOC_IMBALANCE_SELL- See Also:
- Constant Field Values
-
MOC_IMBALANCE_SELL
public static final MamdaOrderImbalanceType MOC_IMBALANCE_SELL
-
NO_MOC_IMBALANCE_VALUE
public static final int NO_MOC_IMBALANCE_VALUE
NO_MOC_IMBALANCE- See Also:
- Constant Field Values
-
NO_MOC_IMBALANCE
public static final MamdaOrderImbalanceType NO_MOC_IMBALANCE
-
ORDER_IMB_VALUE
public static final int ORDER_IMB_VALUE
ORDER_IMB- See Also:
- Constant Field Values
-
ORDER_IMB
public static final MamdaOrderImbalanceType ORDER_IMB
-
ORDER_INF_VALUE
public static final int ORDER_INF_VALUE
ORDER_INF- See Also:
- Constant Field Values
-
ORDER_INF
public static final MamdaOrderImbalanceType ORDER_INF
-
ORDER_IMBALANCE_BUY_VALUE
public static final int ORDER_IMBALANCE_BUY_VALUE
ORDER_IMBALANCE_BUY_VALUE- See Also:
- Constant Field Values
-
ORDER_IMBALANCE_BUY
public static final MamdaOrderImbalanceType ORDER_IMBALANCE_BUY
-
ORDER_IMBALANCE_SELL_VALUE
public static final int ORDER_IMBALANCE_SELL_VALUE
ORDER_IMBALANCE_SELL_VALUE- See Also:
- Constant Field Values
-
ORDER_IMBALANCE_SELL
public static final MamdaOrderImbalanceType ORDER_IMBALANCE_SELL
-
NO_ORDER_IMBALANCE_VALUE
public static final int NO_ORDER_IMBALANCE_VALUE
NO_ORDER_IMBALANCE- See Also:
- Constant Field Values
-
NO_ORDER_IMBALANCE
public static final MamdaOrderImbalanceType NO_ORDER_IMBALANCE
-
UNKNOWN
public static final int UNKNOWN
UKNOWN- See Also:
- Constant Field Values
-
TYPE_UNKNOWN
public static final MamdaOrderImbalanceType TYPE_UNKNOWN
-
-
Method Detail
-
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.
-
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.
-
enumObjectForValue
public static MamdaOrderImbalanceType enumObjectForValue(int value)
Return an instance of a MamdaOrderImbalanceType corresponding to the specified integer value. Returns null if the integer value is not recognised.- Parameters:
value
- Int value for a MamdaOrderImbalanceType- Returns:
- Instance of a MamdaOrderImbalanceType if a mapping exists.
-
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 MamdaOrderImbalanceType- Returns:
- The string name value of the specified MamdaOrderImbalanceType value.
-
stringToValue
public static int stringToValue(java.lang.String type)
-
isMamdaOrderImbalanceType
public static boolean isMamdaOrderImbalanceType(int value)
-
isMamdaImbalanceOrder
public static boolean isMamdaImbalanceOrder(int value)
-
equals
public boolean equals(MamdaOrderImbalanceType imbDataType)
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.- Parameters:
imbDataType
- The object to check equality against.- Returns:
- Whether the two objects are equal.
-
-