Class CurveInfoType<T>

  • Type Parameters:
    T - the type of the associated value
    All Implemented Interfaces:
    Named, Serializable, 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
    • Method Detail

      • of

        public static <T> CurveInfoType<T> of​(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
        name - the name
        a type instance with the specified name