Package com.ibm.icu.text
Class PluralRules.FixedDecimal
- java.lang.Object
-
- java.lang.Number
-
- com.ibm.icu.text.PluralRules.FixedDecimal
-
- All Implemented Interfaces:
PluralRules.IFixedDecimal
,java.io.Serializable
,java.lang.Comparable<PluralRules.FixedDecimal>
- Enclosing class:
- PluralRules
@Deprecated public static class PluralRules.FixedDecimal extends java.lang.Number implements java.lang.Comparable<PluralRules.FixedDecimal>, PluralRules.IFixedDecimal
Deprecated.This API is ICU internal only.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
baseFactor
Deprecated.(package private) long
decimalDigits
Deprecated.(package private) long
decimalDigitsWithoutTrailingZeros
Deprecated.(package private) int
exponent
Deprecated.(package private) boolean
hasIntegerValue
Deprecated.(package private) long
integerValue
Deprecated.(package private) boolean
isNegative
Deprecated.(package private) static long
MAX
Deprecated.private static long
MAX_INTEGER_PART
Deprecated.private static long
serialVersionUID
Deprecated.(package private) double
source
Deprecated.(package private) int
visibleDecimalDigitCount
Deprecated.(package private) int
visibleDecimalDigitCountWithoutTrailingZeros
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description FixedDecimal(double n)
Deprecated.This API is ICU internal only.FixedDecimal(double n, int v)
Deprecated.This API is ICU internal only.FixedDecimal(double n, int v, long f)
Deprecated.This API is ICU internal only.FixedDecimal(double n, int v, long f, int e)
Deprecated.This API is ICU internal only.FixedDecimal(double n, int v, long f, int e, int c)
Deprecated.This API is ICU internal only.FixedDecimal(long n)
Deprecated.This API is ICU internal only.private
FixedDecimal(PluralRules.FixedDecimal other)
Deprecated.This API is ICU internal only
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(PluralRules.FixedDecimal other)
Deprecated.This API is ICU internal only.static PluralRules.FixedDecimal
createWithExponent(double n, int v, int e)
Deprecated.This API is ICU internal only.static int
decimals(double n)
Deprecated.This API is ICU internal only.double
doubleValue()
Deprecated.This API is ICU internal only.boolean
equals(java.lang.Object arg0)
Deprecated.This API is ICU internal only.float
floatValue()
Deprecated.This API is ICU internal only.int
getBaseFactor()
Deprecated.This API is ICU internal only.long
getDecimalDigits()
Deprecated.This API is ICU internal only.long
getDecimalDigitsWithoutTrailingZeros()
Deprecated.This API is ICU internal only.private static int
getFractionalDigits(double n, int v)
Deprecated.long
getIntegerValue()
Deprecated.This API is ICU internal only.static PluralRules.Operand
getOperand(java.lang.String t)
Deprecated.This API is ICU internal only.double
getPluralOperand(PluralRules.Operand operand)
Deprecated.This API is ICU internal only.double
getSource()
Deprecated.This API is ICU internal only.int
getVisibleDecimalDigitCount()
Deprecated.This API is ICU internal only.int
getVisibleDecimalDigitCountWithoutTrailingZeros()
Deprecated.This API is ICU internal only.int
hashCode()
Deprecated.This API is ICU internal only.boolean
hasIntegerValue()
Deprecated.This API is ICU internal only.int
intValue()
Deprecated.This API is ICU internal only.boolean
isHasIntegerValue()
Deprecated.This API is ICU internal only.boolean
isInfinite()
Deprecated.This API is ICU internal only.boolean
isNaN()
Deprecated.This API is ICU internal only.boolean
isNegative()
Deprecated.This API is ICU internal only.long
longValue()
Deprecated.This API is ICU internal only.private void
readObject(java.io.ObjectInputStream in)
Deprecated.java.lang.String
toString()
Deprecated.This API is ICU internal only.private void
writeObject(java.io.ObjectOutputStream out)
Deprecated.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
MAX_INTEGER_PART
private static final long MAX_INTEGER_PART
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 numberv
- number of digits to the right of the decimal place. e.g 1.00 = 2 25. = 0f
- Corresponds to f in the plural rules grammar. The digits to the right of the decimal place as an integer. e.g 1.10 = 10e
- Suppressed exponent for scientific notationc
- Currently: an alias for parame
-
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 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.Description copied from interface:PluralRules.IFixedDecimal
Whether the number has no nonzero fraction digits.- Specified by:
isHasIntegerValue
in interfacePluralRules.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 interfacePluralRules.IFixedDecimal
-
getOperand
@Deprecated public static PluralRules.Operand getOperand(java.lang.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 interfacejava.lang.Comparable<PluralRules.FixedDecimal>
-
equals
@Deprecated public boolean equals(java.lang.Object arg0)
Deprecated.This API is ICU internal only.- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Deprecated public int hashCode()
Deprecated.This API is ICU internal only.- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Deprecated public java.lang.String toString()
Deprecated.This API is ICU internal only.- Overrides:
toString
in classjava.lang.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 classjava.lang.Number
-
longValue
@Deprecated public long longValue()
Deprecated.This API is ICU internal only.- Specified by:
longValue
in classjava.lang.Number
-
floatValue
@Deprecated public float floatValue()
Deprecated.This API is ICU internal only.- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
@Deprecated public double doubleValue()
Deprecated.This API is ICU internal only.- Specified by:
doubleValue
in classjava.lang.Number
-
writeObject
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
readObject
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
Deprecated.- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
isNaN
@Deprecated public boolean isNaN()
Deprecated.This API is ICU internal only.- Specified by:
isNaN
in interfacePluralRules.IFixedDecimal
-
isInfinite
@Deprecated public boolean isInfinite()
Deprecated.This API is ICU internal only.- Specified by:
isInfinite
in interfacePluralRules.IFixedDecimal
-
-