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