Package com.ibm.icu.number
Enum NumberRangeFormatter.RangeCollapse
java.lang.Object
java.lang.Enum<NumberRangeFormatter.RangeCollapse>
com.ibm.icu.number.NumberRangeFormatter.RangeCollapse
- All Implemented Interfaces:
Serializable
,Comparable<NumberRangeFormatter.RangeCollapse>
,java.lang.constant.Constable
- Enclosing class:
NumberRangeFormatter
public static enum NumberRangeFormatter.RangeCollapse
extends Enum<NumberRangeFormatter.RangeCollapse>
Defines how to merge fields that are identical across the range sign.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static NumberRangeFormatter.RangeCollapse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Use locale data and heuristics to determine how much of the string to collapse. Could end up collapsing none, some, or all repeated pieces in a locale-sensitive way.The heuristics used for this option are subject to change over time.
- See Also:
-
NONE
Do not collapse any part of the number. Example: "3.2 thousand kilograms – 5.3 thousand kilograms"- See Also:
-
UNIT
Collapse the unit part of the number, but not the notation, if present. Example: "3.2 thousand – 5.3 thousand kilograms"- See Also:
-
ALL
Collapse any field that is equal across the range sign. May introduce ambiguity on the magnitude of the number. Example: "3.2 – 5.3 thousand kilograms"- 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
-