public static class PluralRules.FixedDecimal extends Number implements Comparable<PluralRules.FixedDecimal>
Modifier and Type | Field and Description |
---|---|
long |
decimalDigits
Deprecated.
This API is ICU internal only.
|
long |
decimalDigitsWithoutTrailingZeros
Deprecated.
This API is ICU internal only.
|
boolean |
hasIntegerValue
Deprecated.
This API is ICU internal only.
|
long |
integerValue
Deprecated.
This API is ICU internal only.
|
boolean |
isNegative
Deprecated.
This API is ICU internal only.
|
double |
source
Deprecated.
This API is ICU internal only.
|
int |
visibleDecimalDigitCount
Deprecated.
This API is ICU internal only.
|
int |
visibleDecimalDigitCountWithoutTrailingZeros
Deprecated.
This API is ICU internal only.
|
Constructor and 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.
|
Modifier and Type | Method and 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.
|
double |
get(com.ibm.icu.text.PluralRules.Operand operand)
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 com.ibm.icu.text.PluralRules.Operand |
getOperand(String t)
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 |
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.
|
byteValue, shortValue
public final double source
public final int visibleDecimalDigitCount
public final int visibleDecimalDigitCountWithoutTrailingZeros
public final long decimalDigits
public final long decimalDigitsWithoutTrailingZeros
public final long integerValue
public final boolean hasIntegerValue
public final boolean isNegative
public FixedDecimal(double n, int v, long f)
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 = 10public FixedDecimal(double n, int v)
public FixedDecimal(double n)
public FixedDecimal(long n)
public FixedDecimal(String n)
public double getSource()
public int getVisibleDecimalDigitCount()
public int getVisibleDecimalDigitCountWithoutTrailingZeros()
public long getDecimalDigits()
public long getDecimalDigitsWithoutTrailingZeros()
public long getIntegerValue()
public boolean isHasIntegerValue()
public boolean isNegative()
public int getBaseFactor()
public static int decimals(double n)
public double get(com.ibm.icu.text.PluralRules.Operand operand)
public static com.ibm.icu.text.PluralRules.Operand getOperand(String t)
public int compareTo(PluralRules.FixedDecimal other)
compareTo
in interface Comparable<PluralRules.FixedDecimal>
public boolean equals(Object arg0)
public int hashCode()
public String toString()
public boolean hasIntegerValue()
public int intValue()
public long longValue()
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public long getShiftedValue()
Copyright (c) 2013 IBM Corporation and others.