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,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:
- Serialized Form
- Status:
- Internal. This API is ICU internal only.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(PluralRules.FixedDecimal other)Deprecated.This API is ICU internal only.static PluralRules.FixedDecimalcreateWithExponent(double n, int v, int e)Deprecated.This API is ICU internal only.static intdecimals(double n)Deprecated.This API is ICU internal only.doubledoubleValue()Deprecated.This API is ICU internal only.booleanequals(Object arg0)Deprecated.This API is ICU internal only.floatfloatValue()Deprecated.This API is ICU internal only.intgetBaseFactor()Deprecated.This API is ICU internal only.longgetDecimalDigits()Deprecated.This API is ICU internal only.longgetDecimalDigitsWithoutTrailingZeros()Deprecated.This API is ICU internal only.longgetIntegerValue()Deprecated.This API is ICU internal only.static PluralRules.OperandgetOperand(String t)Deprecated.This API is ICU internal only.doublegetPluralOperand(PluralRules.Operand operand)Deprecated.This API is ICU internal only.doublegetSource()Deprecated.This API is ICU internal only.intgetVisibleDecimalDigitCount()Deprecated.This API is ICU internal only.intgetVisibleDecimalDigitCountWithoutTrailingZeros()Deprecated.This API is ICU internal only.inthashCode()Deprecated.This API is ICU internal only.booleanhasIntegerValue()Deprecated.This API is ICU internal only.intintValue()Deprecated.This API is ICU internal only.booleanisHasIntegerValue()Deprecated.This API is ICU internal only.booleanisInfinite()Deprecated.This API is ICU internal only.booleanisNaN()Deprecated.This API is ICU internal only.booleanisNegative()Deprecated.This API is ICU internal only.longlongValue()Deprecated.This API is ICU internal only.StringtoString()Deprecated.This API is ICU internal only.-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
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- Status:
- Internal. This API is ICU internal only.
-
FixedDecimal
@Deprecated public FixedDecimal(double n, int v, long f, int e)
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
FixedDecimal
@Deprecated public FixedDecimal(double n, int v, long f)
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
FixedDecimal
@Deprecated public FixedDecimal(double n, int v)
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
FixedDecimal
@Deprecated public FixedDecimal(double n)
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
FixedDecimal
@Deprecated public FixedDecimal(long n)
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
-
Method Detail
-
getSource
@Deprecated public double getSource()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getVisibleDecimalDigitCount
@Deprecated public int getVisibleDecimalDigitCount()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getVisibleDecimalDigitCountWithoutTrailingZeros
@Deprecated public int getVisibleDecimalDigitCountWithoutTrailingZeros()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getDecimalDigits
@Deprecated public long getDecimalDigits()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getDecimalDigitsWithoutTrailingZeros
@Deprecated public long getDecimalDigitsWithoutTrailingZeros()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getIntegerValue
@Deprecated public long getIntegerValue()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
isHasIntegerValue
@Deprecated public boolean isHasIntegerValue()
Deprecated.This API is ICU internal only.Description copied from interface:PluralRules.IFixedDecimalWhether the number has no nonzero fraction digits.- Specified by:
isHasIntegerValuein interfacePluralRules.IFixedDecimal- Status:
- Internal. This API is ICU internal only.
-
isNegative
@Deprecated public boolean isNegative()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
getBaseFactor
@Deprecated public int getBaseFactor()
Deprecated.This API is ICU internal only.- Status:
- Internal. 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.- Status:
- Internal. 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.- Status:
- Internal. This API is ICU internal only.
-
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:
getPluralOperandin interfacePluralRules.IFixedDecimal- Status:
- Internal. This API is ICU internal only.
-
getOperand
@Deprecated public static PluralRules.Operand getOperand(String t)
Deprecated.This API is ICU internal only.- Status:
- Internal. 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:
compareToin interfaceComparable<PluralRules.FixedDecimal>- Status:
- Internal. This API is ICU internal only.
-
equals
@Deprecated public boolean equals(Object arg0)
Deprecated.This API is ICU internal only.
-
hashCode
@Deprecated public int hashCode()
Deprecated.This API is ICU internal only.
-
toString
@Deprecated public String toString()
Deprecated.This API is ICU internal only.
-
hasIntegerValue
@Deprecated public boolean hasIntegerValue()
Deprecated.This API is ICU internal only.- Status:
- Internal. This API is ICU internal only.
-
intValue
@Deprecated public int intValue()
Deprecated.This API is ICU internal only.
-
longValue
@Deprecated public long longValue()
Deprecated.This API is ICU internal only.
-
floatValue
@Deprecated public float floatValue()
Deprecated.This API is ICU internal only.- Specified by:
floatValuein classNumber- Status:
- Internal. This API is ICU internal only.
-
doubleValue
@Deprecated public double doubleValue()
Deprecated.This API is ICU internal only.- Specified by:
doubleValuein classNumber- Status:
- Internal. This API is ICU internal only.
-
isNaN
@Deprecated public boolean isNaN()
Deprecated.This API is ICU internal only.- Specified by:
isNaNin interfacePluralRules.IFixedDecimal- Status:
- Internal. This API is ICU internal only.
-
isInfinite
@Deprecated public boolean isInfinite()
Deprecated.This API is ICU internal only.- Specified by:
isInfinitein interfacePluralRules.IFixedDecimal- Status:
- Internal. This API is ICU internal only.
-
-