public static enum NumberFormat.Style extends EnumSE<NumberFormat.Style>
列挙型定数と説明 |
---|
CURRENCY 現在のロケールの通貨形式。 |
DEFAULT アノテーション付き型のデフォルトの形式: 通常は「数値」ですが、通貨型の場合は「通貨」です(例: |
NUMBER 現在のロケールの汎用数値フォーマット。 |
PERCENT 現在のロケールのパーセント形式。 |
修飾子と型 | メソッドと説明 |
---|---|
static NumberFormat.Style | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static NumberFormat.Style[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
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(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合