Class ParameterSize

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class ParameterSize
    extends java.lang.Object
    implements ImmutableBean, java.io.Serializable
    The market data name and the associated number of parameters.

    This holds the name and the number of parameters that define it. For example, the curve name and the number of curve nodes.

    See Also:
    Serialized Form
    • Method Detail

      • of

        public static ParameterSize of​(MarketDataName<?> name,
                                       int parameterCount)
        Obtains an instance, specifying the name and parameter count.
        Parameters:
        name - the curve name
        parameterCount - the parameter count
        Returns:
        the curve data
      • meta

        public static ParameterSize.Meta meta()
        The meta-bean for ParameterSize.
        Returns:
        the meta-bean, not null
      • getName

        public MarketDataName<?> getName()
        Gets the name of the market data.
        Returns:
        the value of the property, not null
      • getParameterCount

        public int getParameterCount()
        Gets the number of parameters.
        Returns:
        the value of the property
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object