Class ImmutableMeasure

    • Method Detail

      • of

        public static ImmutableMeasure of​(String name)
        Returns a measure with the specified name whose values will be automatically converted to the reporting currency.

        Measure names must only contains the characters A-Z, a-z, 0-9 and -.

        Parameters:
        name - the measure name
        Returns:
        a measure with the specified name
      • of

        public static ImmutableMeasure of​(String name,
                                          boolean isCurrencyConvertible)
        Returns a measure with the specified name.

        Measure names must only contains the characters A-Z, a-z, 0-9 and -.

        Parameters:
        name - the measure name
        isCurrencyConvertible - flag indicating whether measure values should be automatically converted to the reporting currency.
        Returns:
        a measure with the specified name
      • meta

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

        public ImmutableMeasure.Meta metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getName

        public String getName()
        Gets the measure name.

        Measure names must only contains the characters A-Z, a-z, 0-9 and -.

        Specified by:
        getName in interface Measure
        Specified by:
        getName in interface Named
        Returns:
        the value of the property, not null
      • isCurrencyConvertible

        public boolean isCurrencyConvertible()
        Gets flag indicating whether measure values should be automatically converted to the reporting currency.
        Specified by:
        isCurrencyConvertible in interface Measure
        Returns:
        the value of the property
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object