public static enum NumberFormat.Style extends java.lang.Enum<NumberFormat.Style>
| Enum Constant and Description |
|---|
CURRENCY
The currency format for the current locale.
|
DEFAULT
The default format for the annotated type: typically 'number' but possibly
'currency' for a money type (e.g.
|
NUMBER
The general-purpose number format for the current locale.
|
PERCENT
The percent format for the current locale.
|
| Modifier and Type | Method and Description |
|---|---|
static NumberFormat.Style |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormat.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormat.Style DEFAULT
javax.money.MonetaryAmount).public static final NumberFormat.Style NUMBER
public static final NumberFormat.Style PERCENT
public static final NumberFormat.Style CURRENCY
public static NumberFormat.Style[] values()
for (NumberFormat.Style c : NumberFormat.Style.values()) System.out.println(c);
public static NumberFormat.Style 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 null