Class PriceIndexObservation

    • Method Detail

      • of

        public static PriceIndexObservation of​(PriceIndex index,
                                               java.time.YearMonth fixingMonth)
        Creates an instance from an index and fixing date.

        The reference data is used to find the maturity date from the fixing date.

        Parameters:
        index - the index
        fixingMonth - the fixing month
        Returns:
        the rate observation
      • getCurrency

        public Currency getCurrency()
        Gets the currency of the Ibor index.
        Returns:
        the currency of the index
      • equals

        public boolean equals​(java.lang.Object obj)
        Compares this observation to another based on the index and fixing date.

        The maturity date is ignored.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other observation
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Returns a hash code based on the index and fixing date.

        The maturity date is ignored.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • toString

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

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

        public PriceIndex getIndex()
        Gets the FX index.

        The rate will be queried from this index.

        Specified by:
        getIndex in interface IndexObservation
        Returns:
        the value of the property, not null
      • getFixingMonth

        public java.time.YearMonth getFixingMonth()
        Gets the fixing month.

        The index will be observed for this month.

        Returns:
        the value of the property, not null