クラス
java.time.format.TextStyleの使用
-
TextStyleを使用しているパッケージ パッケージ 説明 java.time 日付、時間、インスタント、デュレーションのメインAPI。java.time.chrono デフォルトのISO暦以外の暦体系の汎用API。java.time.format 日付と時間を出力し、解析するクラスを提供します。 -
-
java.timeでのTextStyleの使用
TextStyle型のパラメータを持つjava.timeのメソッド 修飾子と型 メソッド 説明 String
DayOfWeek. getDisplayName(TextStyle style, Locale locale)
「Mon」や「Friday」など、テキスト表現を取得します。String
Month. getDisplayName(TextStyle style, Locale locale)
「1月」や「12月」などのテキスト表現を取得します。String
ZoneId. getDisplayName(TextStyle style, Locale locale)
「英国時間」や「+02:00」など、ゾーンのテキスト表現を取得します。 -
java.time.chronoでのTextStyleの使用
TextStyle型のパラメータを持つjava.time.chronoのメソッド 修飾子と型 メソッド 説明 default String
Chronology. getDisplayName(TextStyle style, Locale locale)
この暦のテキスト表現を取得します。default String
Era. getDisplayName(TextStyle style, Locale locale)
この紀元のテキスト表現を取得します。String
JapaneseEra. getDisplayName(TextStyle style, Locale locale)
この紀元のテキスト表現を取得します。 -
java.time.formatでのTextStyleの使用
TextStyleを返すjava.time.formatのメソッド 修飾子と型 メソッド 説明 TextStyle
TextStyle. asNormal()
同じサイズの標準スタイルを返します。TextStyle
TextStyle. asStandalone()
同じサイズのスタンドアロン・スタイルを返します。static TextStyle
TextStyle. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static TextStyle[]
TextStyle. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。TextStyle型のパラメータを持つjava.time.formatのメソッド 修飾子と型 メソッド 説明 DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendChronologyText(TextStyle textStyle)
暦名をフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle)
'太平洋時間'などの汎用タイムゾーン名をフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)
'太平洋時間'などの汎用タイムゾーン名をフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendLocalizedOffset(TextStyle style)
「GMT+01:00」などのローカライズされたゾーン・オフセットをフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendText(TemporalField field, TextStyle textStyle)
日付/時間フィールドのテキストをフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendZoneText(TextStyle textStyle)
「英国夏時間」などのタイムゾーン名をフォーマッタに追加します。DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)
「英国夏時間」などのタイムゾーン名をフォーマッタに追加します。
-