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
-
-
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(long n)
Deprecated.This API is ICU internal only.FixedDecimal(String 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 int
compareTo(PluralRules.FixedDecimal other)
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(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.long
getIntegerValue()
Deprecated.This API is ICU internal only.static PluralRules.Operand
getOperand(String t)
Deprecated.This API is ICU internal only.double
getPluralOperand(PluralRules.Operand operand)
Deprecated.This API is ICU internal only.long
getShiftedValue()
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.String
toString()
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)
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 = 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 interfacePluralRules.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 interfaceComparable<PluralRules.FixedDecimal>
-
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.
-
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:
floatValue
in classNumber
-
doubleValue
@Deprecated public double doubleValue()
Deprecated.This API is ICU internal only.- Specified by:
doubleValue
in classNumber
-
getShiftedValue
@Deprecated public long getShiftedValue()
Deprecated.This API is ICU internal only.
-
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
-
-