Classes Files

com::wombat::mamda::MamdaOrderImbalanceSide

Public Functions

  Name
String toString()
int getValue()
boolean equals(MamdaOrderImbalanceSide imbalanceSide)
String valueToString(int value)
MamdaOrderImbalanceSide enumObjectForValue(int value)

Public Attributes

  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

Public Functions Documentation

function toString

inline String toString()

Return: Name for the type.

Returns the stringified name for the enumerated type.

function getValue

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.

function equals

inline boolean equals(
    MamdaOrderImbalanceSide imbalanceSide
)

Parameters:

  • imbalanceSide The object to check equality against.

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.

function valueToString

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.

function enumObjectForValue

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.

Public Attributes Documentation

variable BID_SIDE_VALUE

static final int BID_SIDE_VALUE = 0;

BID_SIDE_IMBALANCE

variable BID_SIDE

static final MamdaOrderImbalanceSide BID_SIDE = new 
    MamdaOrderImbalanceSide (valueToString (BID_SIDE_VALUE), BID_SIDE_VALUE);

variable ASK_SIDE_VALUE

static final int ASK_SIDE_VALUE = 1;

ASK_SIDE_IMBALANCE

variable ASK_SIDE

static final MamdaOrderImbalanceSide ASK_SIDE = new
    MamdaOrderImbalanceSide (valueToString (ASK_SIDE_VALUE), ASK_SIDE_VALUE);

variable NO_IMBALANCE_VALUE

static final int NO_IMBALANCE_VALUE = 2;

NO_IMBALANCE

variable NO_IMBALANCE_SIDE

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