Class PluralRules.FixedDecimal

    • Field Detail

      • source

        @Deprecated
        public final double source
        Deprecated.
        This API is ICU internal only.
      • visibleDecimalDigitCount

        @Deprecated
        public final int visibleDecimalDigitCount
        Deprecated.
        This API is ICU internal only.
      • visibleDecimalDigitCountWithoutTrailingZeros

        @Deprecated
        public final int visibleDecimalDigitCountWithoutTrailingZeros
        Deprecated.
        This API is ICU internal only.
      • decimalDigits

        @Deprecated
        public final long decimalDigits
        Deprecated.
        This API is ICU internal only.
      • decimalDigitsWithoutTrailingZeros

        @Deprecated
        public final long decimalDigitsWithoutTrailingZeros
        Deprecated.
        This API is ICU internal only.
      • integerValue

        @Deprecated
        public final long integerValue
        Deprecated.
        This API is ICU internal only.
      • hasIntegerValue

        @Deprecated
        public final boolean hasIntegerValue
        Deprecated.
        This API is ICU internal only.
      • isNegative

        @Deprecated
        public final boolean isNegative
        Deprecated.
        This API is ICU internal only.
    • 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.
      • get

        @Deprecated
        public double get​(com.ibm.icu.text.PluralRules.Operand operand)
        Deprecated.
        This API is ICU internal only.
      • getOperand

        @Deprecated
        public static com.ibm.icu.text.PluralRules.Operand getOperand​(String t)
        Deprecated.
        This API is ICU internal only.
      • compareTo

        @Deprecated
        public int compareTo​(PluralRules.FixedDecimal other)
        Deprecated.
        This API is ICU internal only.
        We're not going to care about NaN.
        Specified by:
        compareTo in interface Comparable<PluralRules.FixedDecimal>
        Parameters:
        other - the object to compare to this instance.
        Returns:
        a negative integer if this instance is less than another; a positive integer if this instance is greater than another; 0 if this instance has the same order as another.
      • equals

        @Deprecated
        public boolean equals​(Object arg0)
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Object
        Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

        The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

        The general contract for the equals and Object.hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

        Overrides:
        equals in class Object
        Parameters:
        arg0 - the object to compare this instance with.
        Returns:
        true if the specified object is equal to this Object; false otherwise.
        See Also:
        Object.hashCode()
      • hashCode

        @Deprecated
        public int hashCode()
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

        Note that hash values must not change over time unless information used in equals comparisons also changes.

        See Writing a correct hashCode method if you intend implementing your own hashCode method.

        Overrides:
        hashCode in class Object
        Returns:
        this object's hash code.
        See Also:
        Object.equals(java.lang.Object)
      • toString

        @Deprecated
        public String toString()
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this 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.
        Description copied from class: Number
        Returns this object's value as an int. Might involve rounding and/or truncating the value, so it fits into an int.
        Specified by:
        intValue in class Number
        Returns:
        the primitive int value of this object.
      • longValue

        @Deprecated
        public long longValue()
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Number
        Returns this object's value as a long. Might involve rounding and/or truncating the value, so it fits into a long.
        Specified by:
        longValue in class Number
        Returns:
        the primitive long value of this object.
      • floatValue

        @Deprecated
        public float floatValue()
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Number
        Returns this object's value as a float. Might involve rounding.
        Specified by:
        floatValue in class Number
        Returns:
        the primitive float value of this object.
      • doubleValue

        @Deprecated
        public double doubleValue()
        Deprecated.
        This API is ICU internal only.
        Description copied from class: Number
        Returns this object's value as a double. Might involve rounding.
        Specified by:
        doubleValue in class Number
        Returns:
        the primitive double value of this object.
      • getShiftedValue

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