Class CurveInfoType<T>

  • Type Parameters:
    T - the type of the associated value
    All Implemented Interfaces:
    Named, java.io.Serializable, java.lang.Comparable<CurveInfoType<T>>

    public final class CurveInfoType<T>
    extends TypedString<CurveInfoType<T>>
    The type that provides meaning to additional curve information.

    Additional curve information is stored in CurveMetadata. It provides the ability to associate arbitrary information with a curve in a key-value map. For example, it might be used to provide information about one of the axes.

    Applications that wish to use curve information should declare a static constant declaring the CurveInfoType instance, the type parameter and an UpperCamelCase name. For example:

      public static final CurveInfoType<String> OWNER = CurveInfoType.of("Owner");
     
    See Also:
    Serialized Form
    • Field Detail

      • COMPOUNDING_PER_YEAR

        public static final CurveInfoType<java.lang.Integer> COMPOUNDING_PER_YEAR
        Key used to access information about the number of compounding per year, as an Integer.
      • PV_SENSITIVITY_TO_MARKET_QUOTE

        public static final CurveInfoType<DoubleArray> PV_SENSITIVITY_TO_MARKET_QUOTE
        Key used to access information about the present value sensitivity to market quote, represented by a DoubleArray.
      • CDS_INDEX_FACTOR

        public static final CurveInfoType<java.lang.Double> CDS_INDEX_FACTOR
        Key used to access information about the index factor.
    • Method Detail

      • of

        public static <T> CurveInfoType<T> of​(java.lang.String name)
        Obtains an instance from the specified name.

        The name may contain any character, but must not be empty.

        Type Parameters:
        T - the type associated with the info
        Parameters:
        name - the name
        Returns:
        a type instance with the specified name