public static enum NumberFormatter.TrailingZeroDisplay extends Enum<NumberFormatter.TrailingZeroDisplay>
Enum Constant and Description |
---|
AUTO
Display trailing zeros according to the settings for minimum fraction and significant digits.
|
HIDE_IF_WHOLE
Same as AUTO, but hide trailing zeros after the decimal separator if they are all zero.
|
Modifier and Type | Method and Description |
---|---|
static NumberFormatter.TrailingZeroDisplay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormatter.TrailingZeroDisplay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormatter.TrailingZeroDisplay AUTO
public static final NumberFormatter.TrailingZeroDisplay HIDE_IF_WHOLE
public static NumberFormatter.TrailingZeroDisplay[] values()
for (NumberFormatter.TrailingZeroDisplay c : NumberFormatter.TrailingZeroDisplay.values()) System.out.println(c);
public static NumberFormatter.TrailingZeroDisplay 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.