クラスjava.text.NumberFormat.Styleの
使用
-
NumberFormat.Styleを使用するパッケージ パッケージ 説明 java.text テキスト、日付、数値、およびメッセージを自然言語に依存しない方法で処理するためのクラスとインタフェースを提供します。java.text.spi java.textパッケージに含まれているクラスのサービス・プロバイダ・クラスです。 -
-
java.textでのNumberFormat.Styleの使用
NumberFormat.Styleを戻すjava.textのメソッド 修飾子と型 メソッド 説明 static NumberFormat.Style
NumberFormat.Style. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static NumberFormat.Style[]
NumberFormat.Style. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。型NumberFormat.Styleのパラメータを持つjava.textのメソッド 修飾子と型 メソッド 説明 static NumberFormat
NumberFormat. getCompactNumberInstance(Locale locale, NumberFormat.Style formatStyle)
指定されたlocale
およびformatStyle
に対してコンパクトな数値形式を返します。 -
java.text.spiでのNumberFormat.Styleの使用
型NumberFormat.Styleのパラメータを持つjava.text.spiのメソッド 修飾子と型 メソッド 説明 NumberFormat
NumberFormatProvider. getCompactNumberInstance(Locale locale, NumberFormat.Style formatStyle)
指定されたlocale
およびformatStyle
のコンパクト形式で数値を書式設定する新規NumberFormat
インスタンスを返します。
-