Enum AveragingInOutEnum

java.lang.Object
java.lang.Enum<AveragingInOutEnum>
cdm.product.template.AveragingInOutEnum
All Implemented Interfaces:
Serializable, Comparable<AveragingInOutEnum>

@RosettaEnum("AveragingInOutEnum") public enum AveragingInOutEnum extends Enum<AveragingInOutEnum>
The enumerated values to specify the type of averaging used in an Asian option.
Version:
5.30.0
  • Enum Constant Details

    • IN

      @RosettaEnumValue("In") public static final AveragingInOutEnum IN
      The average price is used to derive the strike price. Also known as 'Asian strike' style option.
    • OUT

      @RosettaEnumValue("Out") public static final AveragingInOutEnum OUT
      The average price is used to derive the expiration price. Also known as 'Asian price' style option.
    • BOTH

      @RosettaEnumValue("Both") public static final AveragingInOutEnum BOTH
      The average price is used to derive both the strike and the expiration price.
  • Method Details

    • values

      public static AveragingInOutEnum[] 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 AveragingInOutEnum 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 AveragingInOutEnum fromDisplayName(String name)
    • toString

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

      public String toDisplayString()