public static enum NumberFormatter.TrailingZeroDisplay extends java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright ? 2016 Unicode, Inc. and others.