NumberRangeFormatter.RangeCollapse
public
static
final
enum
NumberRangeFormatter.RangeCollapse
extends Enum<NumberRangeFormatter.RangeCollapse>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.number.NumberRangeFormatter.RangeCollapse> | |
↳ | android.icu.number.NumberRangeFormatter.RangeCollapse |
Defines how to merge fields that are identical across the range sign.
See also:
Summary
Enum values | |
---|---|
NumberRangeFormatter.RangeCollapse |
ALL
Collapse any field that is equal across the range sign. |
NumberRangeFormatter.RangeCollapse |
AUTO
Use locale data and heuristics to determine how much of the string to collapse. |
NumberRangeFormatter.RangeCollapse |
NONE
Do not collapse any part of the number. |
NumberRangeFormatter.RangeCollapse |
UNIT
Collapse the unit part of the number, but not the notation, if present. |
Public methods | |
---|---|
static
NumberRangeFormatter.RangeCollapse
|
valueOf(String name)
|
static
final
RangeCollapse[]
|
values()
|
Inherited methods | |
---|---|
Enum values
ALL
public static final NumberRangeFormatter.RangeCollapse ALL
Collapse any field that is equal across the range sign. May introduce ambiguity on the magnitude of the number. Example: "3.2 \u2013 5.3 thousand kilograms"
See also:
AUTO
public static final NumberRangeFormatter.RangeCollapse 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
public static final NumberRangeFormatter.RangeCollapse NONE
Do not collapse any part of the number. Example: "3.2 thousand kilograms \u2013 5.3 thousand kilograms"
See also:
UNIT
public static final NumberRangeFormatter.RangeCollapse UNIT
Collapse the unit part of the number, but not the notation, if present. Example: "3.2 thousand \u2013 5.3 thousand kilograms"
See also:
Public methods
valueOf
public static NumberRangeFormatter.RangeCollapse valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
NumberRangeFormatter.RangeCollapse |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.