Package com.ibm.icu.number
Enum NumberRangeFormatter.RangeIdentityResult
java.lang.Object
java.lang.Enum<NumberRangeFormatter.RangeIdentityResult>
com.ibm.icu.number.NumberRangeFormatter.RangeIdentityResult
- All Implemented Interfaces:
Serializable
,Comparable<NumberRangeFormatter.RangeIdentityResult>
,java.lang.constant.Constable
- Enclosing class:
NumberRangeFormatter
public static enum NumberRangeFormatter.RangeIdentityResult
extends Enum<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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed to indicate that the two numbers in the range were equal, but only after rounding rules were applied.Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied.Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQUAL_BEFORE_ROUNDING
Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied.- See Also:
-
EQUAL_AFTER_ROUNDING
Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied.- See Also:
-
NOT_EQUAL
Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-