Class ImmutablePriceIndex

  • All Implemented Interfaces:
    FloatingRate, FloatingRateIndex, Index, PriceIndex, Named, Serializable, org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class ImmutablePriceIndex
    extends Object
    implements PriceIndex, org.joda.beans.ImmutableBean, Serializable
    A price index implementation based on an immutable set of rules.

    A standard immutable implementation of PriceIndex.

    In most cases, applications should refer to indices by name, using PriceIndex.of(String). The named index will typically be resolved to an instance of this class. As such, it is recommended to use the PriceIndex interface in application code rather than directly referring to this class.

    See Also:
    Serialized Form
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns the name of the index.
        Overrides:
        toString in class Object
        Returns:
        the name of the index
      • meta

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

        public static ImmutablePriceIndex.Builder builder()
        Returns a builder used to create an instance of the bean.
        Returns:
        the builder, not null
      • getRegion

        public Country getRegion()
        Gets the region of the index.
        Specified by:
        getRegion in interface PriceIndex
        Returns:
        the value of the property, not null
      • isActive

        public boolean isActive()
        Gets whether the index is active, defaulted to true.

        Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.

        Specified by:
        isActive in interface FloatingRateIndex
        Returns:
        the value of the property
      • getPublicationFrequency

        public Frequency getPublicationFrequency()
        Gets the publication frequency of the index. Most price indices are published monthly, but some are published quarterly.
        Specified by:
        getPublicationFrequency in interface PriceIndex
        Returns:
        the value of the property, not null
      • toBuilder

        public ImmutablePriceIndex.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        Returns:
        the mutable builder, not null