Class PluralRules.FixedDecimal

java.lang.Object
java.lang.Number
com.ibm.icu.text.PluralRules.FixedDecimal
All Implemented Interfaces:
PluralRules.IFixedDecimal, Serializable, Comparable<PluralRules.FixedDecimal>
Enclosing class:
PluralRules

@Deprecated public static class PluralRules.FixedDecimal extends Number implements Comparable<PluralRules.FixedDecimal>, PluralRules.IFixedDecimal
Deprecated.
This API is ICU internal only.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • source

      final double source
      Deprecated.
    • visibleDecimalDigitCount

      final int visibleDecimalDigitCount
      Deprecated.
    • visibleDecimalDigitCountWithoutTrailingZeros

      final int visibleDecimalDigitCountWithoutTrailingZeros
      Deprecated.
    • decimalDigits

      final long decimalDigits
      Deprecated.
    • decimalDigitsWithoutTrailingZeros

      final long decimalDigitsWithoutTrailingZeros
      Deprecated.
    • integerValue

      final long integerValue
      Deprecated.
    • hasIntegerValue

      final boolean hasIntegerValue
      Deprecated.
    • isNegative

      final boolean isNegative
      Deprecated.
    • exponent

      final int exponent
      Deprecated.
    • baseFactor

      private final int baseFactor
      Deprecated.
    • MAX

      static final long MAX
      Deprecated.
      See Also:
    • MAX_INTEGER_PART

      private static final long MAX_INTEGER_PART
      Deprecated.
      See Also:
  • Constructor Details

    • FixedDecimal

      @Deprecated public FixedDecimal(double n, int v, long f, int e, int c)
      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
      e - Suppressed exponent for scientific notation
      c - Currently: an alias for param e
    • FixedDecimal

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

      @Deprecated public FixedDecimal(double n, int v, long f)
      Deprecated.
      This API is ICU internal only.
    • 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 private FixedDecimal(PluralRules.FixedDecimal other)
      Deprecated.
      This API is ICU internal only
  • Method Details

    • 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.
      Description copied from interface: PluralRules.IFixedDecimal
      Whether the number has no nonzero fraction digits.
      Specified by:
      isHasIntegerValue in interface PluralRules.IFixedDecimal
    • isNegative

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

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

      @Deprecated public static PluralRules.FixedDecimal createWithExponent(double n, int v, int e)
      Deprecated.
      This API is ICU internal only.
    • getFractionalDigits

      private static int getFractionalDigits(double n, int v)
      Deprecated.
    • 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
    • getOperand

      @Deprecated public static 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>
    • equals

      @Deprecated public boolean equals(Object arg0)
      Deprecated.
      This API is ICU internal only.
      Overrides:
      equals in class Object
    • hashCode

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

      @Deprecated public String toString()
      Deprecated.
      This API is ICU internal only.
      Overrides:
      toString 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
    • writeObject

      private void writeObject(ObjectOutputStream out) throws IOException
      Deprecated.
      Throws:
      IOException
    • readObject

      private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
      Deprecated.
      Throws:
      IOException
      ClassNotFoundException
    • isNaN

      @Deprecated public boolean isNaN()
      Deprecated.
      This API is ICU internal only.
      Specified by:
      isNaN in interface PluralRules.IFixedDecimal
    • isInfinite

      @Deprecated public boolean isInfinite()
      Deprecated.
      This API is ICU internal only.
      Specified by:
      isInfinite in interface PluralRules.IFixedDecimal