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 Summary
FieldsModifier and TypeFieldDescriptionprivate final intDeprecated.(package private) final longDeprecated.(package private) final longDeprecated.(package private) final intDeprecated.(package private) final booleanDeprecated.(package private) final longDeprecated.(package private) final booleanDeprecated.(package private) static final longDeprecated.private static final longDeprecated.private static final longDeprecated.(package private) final doubleDeprecated.(package private) final intDeprecated.(package private) final intDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionFixedDecimal(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.privateDeprecated.This API is ICU internal only -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.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.doubleDeprecated.This API is ICU internal only.booleanDeprecated.This API is ICU internal only.floatDeprecated.This API is ICU internal only.intDeprecated.This API is ICU internal only.longDeprecated.This API is ICU internal only.longDeprecated.This API is ICU internal only.private static intgetFractionalDigits(double n, int v) Deprecated.longDeprecated.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.doubleDeprecated.This API is ICU internal only.intDeprecated.This API is ICU internal only.intDeprecated.This API is ICU internal only.inthashCode()Deprecated.This API is ICU internal only.booleanDeprecated.This API is ICU internal only.intintValue()Deprecated.This API is ICU internal only.booleanDeprecated.This API is ICU internal only.booleanDeprecated.This API is ICU internal only.booleanisNaN()Deprecated.This API is ICU internal only.booleanDeprecated.This API is ICU internal only.longDeprecated.This API is ICU internal only.private voidDeprecated.toString()Deprecated.This API is ICU internal only.private voidDeprecated.Methods inherited from class Number
byteValue, shortValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
source
final double sourceDeprecated. -
visibleDecimalDigitCount
final int visibleDecimalDigitCountDeprecated. -
visibleDecimalDigitCountWithoutTrailingZeros
final int visibleDecimalDigitCountWithoutTrailingZerosDeprecated. -
decimalDigits
final long decimalDigitsDeprecated. -
decimalDigitsWithoutTrailingZeros
final long decimalDigitsWithoutTrailingZerosDeprecated. -
integerValue
final long integerValueDeprecated. -
hasIntegerValue
final boolean hasIntegerValueDeprecated. -
isNegative
final boolean isNegativeDeprecated. -
exponent
final int exponentDeprecated. -
baseFactor
private final int baseFactorDeprecated. -
MAX
static final long MAXDeprecated.- See Also:
-
MAX_INTEGER_PART
private static final long MAX_INTEGER_PARTDeprecated.- See Also:
-
-
Constructor Details
-
FixedDecimal
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.This API is ICU internal only. -
FixedDecimal
Deprecated.This API is ICU internal only. -
FixedDecimal
Deprecated.This API is ICU internal only. -
FixedDecimal
Deprecated.This API is ICU internal only. -
FixedDecimal
Deprecated.This API is ICU internal only. -
FixedDecimal
Deprecated.This API is ICU internal only
-
-
Method Details
-
getSource
Deprecated.This API is ICU internal only. -
getVisibleDecimalDigitCount
Deprecated.This API is ICU internal only. -
getVisibleDecimalDigitCountWithoutTrailingZeros
Deprecated.This API is ICU internal only. -
getDecimalDigits
Deprecated.This API is ICU internal only. -
getDecimalDigitsWithoutTrailingZeros
Deprecated.This API is ICU internal only. -
getIntegerValue
Deprecated.This API is ICU internal only. -
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
-
isNegative
Deprecated.This API is ICU internal only. -
getBaseFactor
Deprecated.This API is ICU internal only. -
createWithExponent
Deprecated.This API is ICU internal only. -
getFractionalDigits
private static int getFractionalDigits(double n, int v) Deprecated. -
decimals
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.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
-
getOperand
Deprecated.This API is ICU internal only. -
compareTo
Deprecated.This API is ICU internal only.We're not going to care about NaN.- Specified by:
compareToin interfaceComparable<PluralRules.FixedDecimal>
-
equals
Deprecated.This API is ICU internal only. -
hashCode
Deprecated.This API is ICU internal only. -
toString
Deprecated.This API is ICU internal only. -
hasIntegerValue
Deprecated.This API is ICU internal only. -
intValue
Deprecated.This API is ICU internal only. -
longValue
Deprecated.This API is ICU internal only. -
floatValue
Deprecated.This API is ICU internal only.- Specified by:
floatValuein classNumber
-
doubleValue
Deprecated.This API is ICU internal only.- Specified by:
doubleValuein classNumber
-
writeObject
-
readObject
Deprecated.- Throws:
IOExceptionClassNotFoundException
-
isNaN
Deprecated.This API is ICU internal only.- Specified by:
isNaNin interfacePluralRules.IFixedDecimal
-
isInfinite
Deprecated.This API is ICU internal only.- Specified by:
isInfinitein interfacePluralRules.IFixedDecimal
-