Class MamdaTradeSide


  • public class MamdaTradeSide
    extends java.lang.Object
    A class representing trade Side.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short TRADE_SIDE_BUY  
      static short TRADE_SIDE_SELL  
      static short TRADE_SIDE_UNKNOWN
      The Values of TradeSide: The value 0 maps to Unknown The value 1 maps to Buy The value 2 maps to Sell
    • Constructor Summary

      Constructors 
      Constructor Description
      MamdaTradeSide()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getState()  
      static short mamdaTradeSideFromString​(java.lang.String tradeSide)  
      void setState​(short side)  
      static java.lang.String toString​(short tradeSide)
      Convert a MamdaTradeSide to an appropriate, displayable string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TRADE_SIDE_UNKNOWN

        public static final short TRADE_SIDE_UNKNOWN
        The Values of TradeSide: The value 0 maps to Unknown The value 1 maps to Buy The value 2 maps to Sell
        See Also:
        Constant Field Values
    • Constructor Detail

      • MamdaTradeSide

        public MamdaTradeSide()
    • Method Detail

      • toString

        public static java.lang.String toString​(short tradeSide)
        Convert a MamdaTradeSide to an appropriate, displayable string.
        Parameters:
        tradeSide - The tradeSide as a short.
      • mamdaTradeSideFromString

        public static short mamdaTradeSideFromString​(java.lang.String tradeSide)
      • setState

        public void setState​(short side)
      • getState

        public short getState()