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,
                                                java.lang.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 java.lang.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
      • 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