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