public static enum NumberRangeFormatter.RangeCollapse extends Enum<NumberRangeFormatter.RangeCollapse>
NumberRangeFormatter
Enum Constant and Description |
---|
ALL
Collapse any field that is equal across the range sign.
|
AUTO
Use locale data and heuristics to determine how much of the string to collapse.
|
NONE
Do not collapse any part of the number.
|
UNIT
Collapse the unit part of the number, but not the notation, if present.
|
Modifier and Type | Method and Description |
---|---|
static NumberRangeFormatter.RangeCollapse |
valueOf(String name)
Returns 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.
|
public static final NumberRangeFormatter.RangeCollapse AUTO
The heuristics used for this option are subject to change over time.
NumberRangeFormatter
public static final NumberRangeFormatter.RangeCollapse NONE
NumberRangeFormatter
public static final NumberRangeFormatter.RangeCollapse UNIT
NumberRangeFormatter
public static final NumberRangeFormatter.RangeCollapse ALL
NumberRangeFormatter
public static NumberRangeFormatter.RangeCollapse[] values()
for (NumberRangeFormatter.RangeCollapse c : NumberRangeFormatter.RangeCollapse.values()) System.out.println(c);
public static NumberRangeFormatter.RangeCollapse valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Unicode, Inc. and others.