Class TenorDateParameterMetadata

    • Method Detail

      • of

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

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

        public LocalDate getDate()
        Gets the date associated with the parameter.

        This is the date that is most closely associated with the parameter. The actual parameter is typically a year fraction based on a day count.

        Specified by:
        getDate in interface DatedParameterMetadata
        Returns:
        the value of the property, not null
      • 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