Class MamdaOrderImbalanceType


  • public final class MamdaOrderImbalanceType
    extends java.lang.Object
    • 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 class java.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.