Package com.ibm.icu.text
Class PluralRules.FixedDecimal
- java.lang.Object
-
- java.lang.Number
-
- com.ibm.icu.text.PluralRules.FixedDecimal
-
- All Implemented Interfaces:
Serializable,Comparable<PluralRules.FixedDecimal>
- Enclosing class:
- PluralRules
@Deprecated public static class PluralRules.FixedDecimal extends Number implements Comparable<PluralRules.FixedDecimal>
Deprecated.This API is ICU internal only.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longdecimalDigitsDeprecated.This API is ICU internal only.longdecimalDigitsWithoutTrailingZerosDeprecated.This API is ICU internal only.booleanhasIntegerValueDeprecated.This API is ICU internal only.longintegerValueDeprecated.This API is ICU internal only.booleanisNegativeDeprecated.This API is ICU internal only.doublesourceDeprecated.This API is ICU internal only.intvisibleDecimalDigitCountDeprecated.This API is ICU internal only.intvisibleDecimalDigitCountWithoutTrailingZerosDeprecated.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(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 intcompareTo(PluralRules.FixedDecimal other)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.doubleget(com.ibm.icu.text.PluralRules.Operand operand)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 com.ibm.icu.text.PluralRules.OperandgetOperand(String t)Deprecated.This API is ICU internal only.longgetShiftedValue()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.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
-
-
-
-
Field Detail
-
source
@Deprecated public final double source
Deprecated.This API is ICU internal only.
-
visibleDecimalDigitCount
@Deprecated public final int visibleDecimalDigitCount
Deprecated.This API is ICU internal only.
-
visibleDecimalDigitCountWithoutTrailingZeros
@Deprecated public final int visibleDecimalDigitCountWithoutTrailingZeros
Deprecated.This API is ICU internal only.
-
decimalDigits
@Deprecated public final long decimalDigits
Deprecated.This API is ICU internal only.
-
decimalDigitsWithoutTrailingZeros
@Deprecated public final long decimalDigitsWithoutTrailingZeros
Deprecated.This API is ICU internal only.
-
integerValue
@Deprecated public final long integerValue
Deprecated.This API is ICU internal only.
-
hasIntegerValue
@Deprecated public final boolean hasIntegerValue
Deprecated.This API is ICU internal only.
-
isNegative
@Deprecated public final boolean isNegative
Deprecated.This API is ICU internal only.
-
-
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.
-
get
@Deprecated public double get(com.ibm.icu.text.PluralRules.Operand operand)
Deprecated.This API is ICU internal only.
-
getOperand
@Deprecated public static com.ibm.icu.text.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:
compareToin interfaceComparable<PluralRules.FixedDecimal>- Parameters:
other- the object to compare to this instance.- Returns:
- a negative integer if this instance is less than
another; a positive integer if this instance is greater thananother; 0 if this instance has the same order asanother.
-
equals
@Deprecated public boolean equals(Object arg0)
Deprecated.This API is ICU internal only.Description copied from class:ObjectCompares this instance with the specified object and indicates if they are equal. In order to be equal,omust represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.The default implementation returns
trueonly ifthis == o. See Writing a correctequalsmethod if you intend implementing your ownequalsmethod.The general contract for the
equalsandObject.hashCode()methods is that ifequalsreturnstruefor any two objects, thenhashCode()must return the same value for these objects. This means that subclasses ofObjectusually override either both methods or neither of them.- Overrides:
equalsin classObject- Parameters:
arg0- the object to compare this instance with.- Returns:
trueif the specified object is equal to thisObject;falseotherwise.- See Also:
Object.hashCode()
-
hashCode
@Deprecated public int hashCode()
Deprecated.This API is ICU internal only.Description copied from class:ObjectReturns an integer hash code for this object. By contract, any two objects for whichObject.equals(java.lang.Object)returnstruemust return the same hash code value. This means that subclasses ofObjectusually override both methods or neither method.Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCodemethod if you intend implementing your ownhashCodemethod.- Overrides:
hashCodein classObject- Returns:
- this object's hash code.
- See Also:
Object.equals(java.lang.Object)
-
toString
@Deprecated public String toString()
Deprecated.This API is ICU internal only.Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
hasIntegerValue
@Deprecated public boolean hasIntegerValue()
Deprecated.This API is ICU internal only.
-
intValue
@Deprecated public int intValue()
Deprecated.This API is ICU internal only.Description copied from class:NumberReturns this object's value as an int. Might involve rounding and/or truncating the value, so it fits into an int.
-
longValue
@Deprecated public long longValue()
Deprecated.This API is ICU internal only.Description copied from class:NumberReturns this object's value as a long. Might involve rounding and/or truncating the value, so it fits into a long.
-
floatValue
@Deprecated public float floatValue()
Deprecated.This API is ICU internal only.Description copied from class:NumberReturns this object's value as a float. Might involve rounding.- Specified by:
floatValuein classNumber- Returns:
- the primitive float value of this object.
-
doubleValue
@Deprecated public double doubleValue()
Deprecated.This API is ICU internal only.Description copied from class:NumberReturns this object's value as a double. Might involve rounding.- Specified by:
doubleValuein classNumber- Returns:
- the primitive double value of this object.
-
getShiftedValue
@Deprecated public long getShiftedValue()
Deprecated.This API is ICU internal only.
-
-