Enum LegAction.LegActionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LegAction.LegActionType>
    Enclosing interface:
    LegAction

    public static enum LegAction.LegActionType
    extends java.lang.Enum<LegAction.LegActionType>
    An enumeration of possible actions that can be performed on a leg.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADD
      Value that represents a leg being added to a trade.
      REMOVE
      Value that represents a leg being removed from a trade.
      UPDATE
      Value that represents the state of an existing leg being changed, such as an update to the value of one or more leg fields.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LegAction.LegActionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LegAction.LegActionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • REMOVE

        public static final LegAction.LegActionType REMOVE
        Value that represents a leg being removed from a trade.
      • UPDATE

        public static final LegAction.LegActionType UPDATE
        Value that represents the state of an existing leg being changed, such as an update to the value of one or more leg fields.
    • Method Detail

      • values

        public static LegAction.LegActionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LegAction.LegActionType c : LegAction.LegActionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LegAction.LegActionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null