Class YearMonthDateParameterMetadata

    • Method Detail

      • of

        public static YearMonthDateParameterMetadata of​(java.time.LocalDate date,
                                                        java.time.YearMonth yearMonth)
        Obtains an instance using the year-month.
        Parameters:
        date - the date associated with the parameter
        yearMonth - the year-month of the curve node
        Returns:
        the parameter metadata based on the year-month
      • of

        public static YearMonthDateParameterMetadata of​(java.time.LocalDate date,
                                                        java.time.YearMonth yearMonth,
                                                        java.lang.String label)
        Obtains an instance using the year-month, specifying the label.
        Parameters:
        date - the date associated with the parameter
        yearMonth - the year-month of the curve node
        label - the label to use
        Returns:
        the parameter metadata based on the year-month
      • getIdentifier

        public java.time.YearMonth getIdentifier()
        Gets the identifier, which is the year-month.
        Specified by:
        getIdentifier in interface ParameterMetadata
        Returns:
        the year-month
      • getDate

        public java.time.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
      • getYearMonth

        public java.time.YearMonth getYearMonth()
        Gets the year-month associated with the parameter.
        Returns:
        the value of the property, not null
      • getLabel

        public java.lang.String getLabel()
        Gets the label that describes the parameter, defaulted to the year-month.
        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