Enum PutCallEnum

java.lang.Object
java.lang.Enum<PutCallEnum>
cdm.base.staticdata.asset.common.PutCallEnum
All Implemented Interfaces:
Serializable, Comparable<PutCallEnum>

@RosettaEnum("PutCallEnum") public enum PutCallEnum extends Enum<PutCallEnum>
The enumerated values to specify the types of listed derivative options.
Version:
6.19.0
  • Enum Constant Details

    • PUT

      @RosettaEnumValue("Put") public static final PutCallEnum PUT
      A put option gives the holder the right to sell the underlying asset by a certain date for a certain price.
    • CALL

      @RosettaEnumValue("Call") public static final PutCallEnum CALL
      A call option gives the holder the right to buy the underlying asset by a certain date for a certain price.
  • Method Details

    • values

      public static PutCallEnum[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PutCallEnum valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromDisplayName

      public static PutCallEnum fromDisplayName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PutCallEnum>
    • toDisplayString

      public String toDisplayString()