public static enum NumberFormat.Style extends Enum<NumberFormat.Style>
| 枚举常量和说明 |
|---|
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.
|
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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值