Class TenorParameterMetadata

    • Method Detail

      • of

        public static TenorParameterMetadata of​(Tenor tenor)
        Obtains an instance using the tenor.
        Parameters:
        tenor - the tenor associated with the parameter
        Returns:
        the parameter metadata based on the tenor
      • of

        public static TenorParameterMetadata of​(Tenor tenor,
                                                String label)
        Obtains an instance using the tenor, specifying the label.
        Parameters:
        tenor - the tenor associated with the parameter
        label - the label to use
        Returns:
        the parameter metadata based on the tenor
      • getTenor

        public Tenor getTenor()
        Gets the tenor associated with the parameter.
        Specified by:
        getTenor in interface TenoredParameterMetadata
        Returns:
        the value of the property, not null
      • getLabel

        public String getLabel()
        Gets the label that describes the parameter, defaulted to the tenor.
        Specified by:
        getLabel in interface ParameterMetadata
        Returns:
        the value of the property, not empty
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object