NumberRangeFormatter.RangeIdentityResult


public static final enum NumberRangeFormatter.RangeIdentityResult
extends Enum<NumberRangeFormatter.RangeIdentityResult>

java.lang.Object
   ↳ java.lang.Enum<android.icu.number.NumberRangeFormatter.RangeIdentityResult>
     ↳ android.icu.number.NumberRangeFormatter.RangeIdentityResult


Used in the result class FormattedNumberRange to indicate to the user whether the numbers formatted in the range were equal or not, and whether or not the identity fallback was applied.

Summary

Enum values

NumberRangeFormatter.RangeIdentityResult  EQUAL_AFTER_ROUNDING

Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied. 

NumberRangeFormatter.RangeIdentityResult  EQUAL_BEFORE_ROUNDING

Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied. 

NumberRangeFormatter.RangeIdentityResult  NOT_EQUAL

Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied. 

Public methods

static NumberRangeFormatter.RangeIdentityResult valueOf(String name)
static final RangeIdentityResult[] values()

Inherited methods

Enum values

EQUAL_AFTER_ROUNDING

Added in API level 30
public static final NumberRangeFormatter.RangeIdentityResult EQUAL_AFTER_ROUNDING

Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied.

EQUAL_BEFORE_ROUNDING

Added in API level 30
public static final NumberRangeFormatter.RangeIdentityResult EQUAL_BEFORE_ROUNDING

Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied.

NOT_EQUAL

Added in API level 30
public static final NumberRangeFormatter.RangeIdentityResult NOT_EQUAL

Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied.

Public methods

valueOf

public static NumberRangeFormatter.RangeIdentityResult valueOf (String name)

Parameters
name String

Returns
NumberRangeFormatter.RangeIdentityResult

values

public static final RangeIdentityResult[] values ()

Returns
RangeIdentityResult[]