public enum NumberFormatFeature extends Enum<NumberFormatFeature>
LocalizationContext| Enum Constant and Description |
|---|
DISABLE_GROUPING
Disable grouping (don't add grouping character in number format)
|
HIDE_DECIMALS_WHEN_ALL_ZERO
Hide number decimals when all decimal positions (if any) are equal to zero
|
PERCENT_STYLE
Use percent-style format.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasFeature(NumberFormatFeature feature,
NumberFormatFeature[] features)
Check if given
feature is present among given features array |
static NumberFormatFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormatFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormatFeature DISABLE_GROUPING
public static final NumberFormatFeature PERCENT_STYLE
0.xx formpublic static final NumberFormatFeature HIDE_DECIMALS_WHEN_ALL_ZERO
public static NumberFormatFeature[] values()
for (NumberFormatFeature c : NumberFormatFeature.values()) System.out.println(c);
public static NumberFormatFeature 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 nullpublic static boolean hasFeature(NumberFormatFeature feature, NumberFormatFeature[] features)
feature is present among given features arrayfeature - Feature to checkfeatures - Features settrue if given feature is present in features setCopyright © 2019 The Holon Platform. All rights reserved.