public class

PluralRules.FixedDecimal

extends java.lang.Number

implements java.lang.Comparable<PluralRules.FixedDecimal>

 java.lang.Object

↳java.lang.Number

↳androidx.core.i18n.messageformat_icu.simple.PluralRules.FixedDecimal

Overview

icu_annot::internal CLDR This API is ICU internal only.

Summary

Fields
public final longdecimalDigits

Whether the number has no nonzero fraction digits.

public final longdecimalDigitsWithoutTrailingZeros

icu_annot::internal This API is ICU internal only.

public final booleanhasIntegerValue

icu_annot::internal This API is ICU internal only.

public final longintegerValue

icu_annot::internal This API is ICU internal only.

public final booleanisNegative

icu_annot::internal This API is ICU internal only.

public final doublesource

icu_annot::internal CLDR This API is ICU internal only.

public final intvisibleDecimalDigitCount

icu_annot::internal CLDR This API is ICU internal only.

public final intvisibleDecimalDigitCountWithoutTrailingZeros

icu_annot::internal CLDR This API is ICU internal only.

Constructors
publicFixedDecimal(double n)

icu_annot::internal CLDR This API is ICU internal only.

publicFixedDecimal(double n, int v)

icu_annot::internal CLDR This API is ICU internal only.

publicFixedDecimal(double n, int v, long f)

icu_annot::internal CLDR This API is ICU internal only.

publicFixedDecimal(long n)

icu_annot::internal CLDR This API is ICU internal only.

publicFixedDecimal(java.lang.String n)

icu_annot::internal CLDR This API is ICU internal only.

Methods
public intcompareTo(PluralRules.FixedDecimal other)

We're not going to care about NaN.

public static intdecimals(double n)

Return a guess as to the number of decimals that would be displayed.

public doubledoubleValue()

icu_annot::internal CLDR This API is ICU internal only.

public booleanequals(java.lang.Object arg0)

icu_annot::internal CLDR This API is ICU internal only.

public floatfloatValue()

icu_annot::internal CLDR This API is ICU internal only.

public doubleget(androidx.core.i18n.messageformat_icu.simple.PluralRules.Operand operand)

icu_annot::internal CLDR This API is ICU internal only.

public intgetBaseFactor()

icu_annot::internal CLDR This API is ICU internal only.

public longgetDecimalDigits()

icu_annot::internal CLDR This API is ICU internal only.

public longgetDecimalDigitsWithoutTrailingZeros()

icu_annot::internal CLDR This API is ICU internal only.

public longgetIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public static androidx.core.i18n.messageformat_icu.simple.PluralRules.OperandgetOperand(java.lang.String t)

icu_annot::internal CLDR This API is ICU internal only.

public longgetShiftedValue()

icu_annot::internal CLDR This API is ICU internal only.

public doublegetSource()

icu_annot::internal CLDR This API is ICU internal only.

public intgetVisibleDecimalDigitCount()

icu_annot::internal CLDR This API is ICU internal only.

public intgetVisibleDecimalDigitCountWithoutTrailingZeros()

icu_annot::internal CLDR This API is ICU internal only.

public inthashCode()

icu_annot::internal CLDR This API is ICU internal only.

public booleanhasIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public intintValue()

icu_annot::internal CLDR This API is ICU internal only.

public booleanisHasIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public booleanisNegative()

icu_annot::internal CLDR This API is ICU internal only.

public longlongValue()

icu_annot::internal CLDR This API is ICU internal only.

public java.lang.StringtoString()

icu_annot::internal CLDR This API is ICU internal only.

from java.lang.NumberbyteValue, shortValue
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

public final double source

icu_annot::internal CLDR This API is ICU internal only.

public final int visibleDecimalDigitCount

icu_annot::internal CLDR This API is ICU internal only.

public final int visibleDecimalDigitCountWithoutTrailingZeros

icu_annot::internal CLDR This API is ICU internal only.

public final long decimalDigits

Whether the number has no nonzero fraction digits. icu_annot::internal CLDR This API is ICU internal only.

public final long decimalDigitsWithoutTrailingZeros

icu_annot::internal This API is ICU internal only.

public final long integerValue

icu_annot::internal This API is ICU internal only.

public final boolean hasIntegerValue

icu_annot::internal This API is ICU internal only.

public final boolean isNegative

icu_annot::internal This API is ICU internal only.

Constructors

public FixedDecimal(double n, int v, long f)

icu_annot::internal CLDR This API is ICU internal only.

Parameters:

n: is the original number
v: number of digits to the right of the decimal place. e.g. 1.00 = 2 25. = 0
f: 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

public FixedDecimal(double n, int v)

icu_annot::internal CLDR This API is ICU internal only.

public FixedDecimal(double n)

icu_annot::internal CLDR This API is ICU internal only.

public FixedDecimal(long n)

icu_annot::internal CLDR This API is ICU internal only.

public FixedDecimal(java.lang.String n)

icu_annot::internal CLDR This API is ICU internal only.

Methods

public double getSource()

icu_annot::internal CLDR This API is ICU internal only.

public int getVisibleDecimalDigitCount()

icu_annot::internal CLDR This API is ICU internal only.

public int getVisibleDecimalDigitCountWithoutTrailingZeros()

icu_annot::internal CLDR This API is ICU internal only.

public long getDecimalDigits()

icu_annot::internal CLDR This API is ICU internal only.

public long getDecimalDigitsWithoutTrailingZeros()

icu_annot::internal CLDR This API is ICU internal only.

public long getIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public boolean isHasIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public boolean isNegative()

icu_annot::internal CLDR This API is ICU internal only.

public int getBaseFactor()

icu_annot::internal CLDR This API is ICU internal only.

public static int decimals(double n)

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. icu_annot::internal CLDR This API is ICU internal only.

public double get(androidx.core.i18n.messageformat_icu.simple.PluralRules.Operand operand)

icu_annot::internal CLDR This API is ICU internal only.

public static androidx.core.i18n.messageformat_icu.simple.PluralRules.Operand getOperand(java.lang.String t)

icu_annot::internal CLDR This API is ICU internal only.

public int compareTo(PluralRules.FixedDecimal other)

We're not going to care about NaN. icu_annot::internal CLDR This API is ICU internal only.

public boolean equals(java.lang.Object arg0)

icu_annot::internal CLDR This API is ICU internal only.

public int hashCode()

icu_annot::internal CLDR This API is ICU internal only.

public java.lang.String toString()

icu_annot::internal CLDR This API is ICU internal only.

public boolean hasIntegerValue()

icu_annot::internal CLDR This API is ICU internal only.

public int intValue()

icu_annot::internal CLDR This API is ICU internal only.

public long longValue()

icu_annot::internal CLDR This API is ICU internal only.

public float floatValue()

icu_annot::internal CLDR This API is ICU internal only.

public double doubleValue()

icu_annot::internal CLDR This API is ICU internal only.

public long getShiftedValue()

icu_annot::internal CLDR This API is ICU internal only.