Class PluralRules.FixedDecimal

    • Constructor Detail

      • FixedDecimal

        @Deprecated
        public FixedDecimal​(double n,
                            int v,
                            long f)
        Deprecated.
        This API is ICU internal only.
        Parameters:
        n - is the original number
        v - number of digits to the right of the decimal place. e.g 1.00 = 2 25. = 0
        f - Corresponds to f in the plural rules grammar. The digits to the right of the decimal place as an integer. e.g 1.10 = 10
      • FixedDecimal

        @Deprecated
        public FixedDecimal​(double n,
                            int v)
        Deprecated.
        This API is ICU internal only.
      • FixedDecimal

        @Deprecated
        public FixedDecimal​(double n)
        Deprecated.
        This API is ICU internal only.
      • FixedDecimal

        @Deprecated
        public FixedDecimal​(long n)
        Deprecated.
        This API is ICU internal only.
      • FixedDecimal

        @Deprecated
        public FixedDecimal​(String n)
        Deprecated.
        This API is ICU internal only.
    • Method Detail

      • getSource

        @Deprecated
        public double getSource()
        Deprecated.
        This API is ICU internal only.
      • getVisibleDecimalDigitCount

        @Deprecated
        public int getVisibleDecimalDigitCount()
        Deprecated.
        This API is ICU internal only.
      • getVisibleDecimalDigitCountWithoutTrailingZeros

        @Deprecated
        public int getVisibleDecimalDigitCountWithoutTrailingZeros()
        Deprecated.
        This API is ICU internal only.
      • getDecimalDigits

        @Deprecated
        public long getDecimalDigits()
        Deprecated.
        This API is ICU internal only.
      • getDecimalDigitsWithoutTrailingZeros

        @Deprecated
        public long getDecimalDigitsWithoutTrailingZeros()
        Deprecated.
        This API is ICU internal only.
      • getIntegerValue

        @Deprecated
        public long getIntegerValue()
        Deprecated.
        This API is ICU internal only.
      • isHasIntegerValue

        @Deprecated
        public boolean isHasIntegerValue()
        Deprecated.
        This API is ICU internal only.
      • isNegative

        @Deprecated
        public boolean isNegative()
        Deprecated.
        This API is ICU internal only.
      • getBaseFactor

        @Deprecated
        public int getBaseFactor()
        Deprecated.
        This API is ICU internal only.
      • decimals

        @Deprecated
        public static int decimals​(double n)
        Deprecated.
        This API is ICU internal only.
        Return a guess as to the number of decimals that would be displayed. This is only a guess; callers should always supply the decimals explicitly if possible. Currently, it is up to 6 decimals (without trailing zeros). Returns 0 for infinities and nans.
      • getPluralOperand

        @Deprecated
        public double getPluralOperand​(PluralRules.Operand operand)
        Deprecated.
        This API is ICU internal only.
        Returns the value corresponding to the specified operand (n, i, f, t, v, or w). If the operand is 'n', returns a double; otherwise, returns an integer.
        Specified by:
        getPluralOperand in interface PluralRules.IFixedDecimal
      • hashCode

        @Deprecated
        public int hashCode()
        Deprecated.
        This API is ICU internal only.
        Overrides:
        hashCode in class Object
      • hasIntegerValue

        @Deprecated
        public boolean hasIntegerValue()
        Deprecated.
        This API is ICU internal only.
      • intValue

        @Deprecated
        public int intValue()
        Deprecated.
        This API is ICU internal only.
        Specified by:
        intValue in class Number
      • longValue

        @Deprecated
        public long longValue()
        Deprecated.
        This API is ICU internal only.
        Specified by:
        longValue in class Number
      • floatValue

        @Deprecated
        public float floatValue()
        Deprecated.
        This API is ICU internal only.
        Specified by:
        floatValue in class Number
      • doubleValue

        @Deprecated
        public double doubleValue()
        Deprecated.
        This API is ICU internal only.
        Specified by:
        doubleValue in class Number
      • getShiftedValue

        @Deprecated
        public long getShiftedValue()
        Deprecated.
        This API is ICU internal only.