Uses of Enum Class
java.time.format.TextStyle
Package
Description
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
-
Uses of TextStyle in java.time
Modifier and TypeMethodDescriptionDayOfWeek.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation, such as 'Mon' or 'Friday'.Month.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation, such as 'Jan' or 'December'.ZoneId.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of the zone, such as 'British Time' or '+02:00'. -
Uses of TextStyle in java.time.chrono
Modifier and TypeMethodDescriptiondefault String
Chronology.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this chronology.default String
Era.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this era.HijrahEra.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this era.JapaneseEra.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this era.MinguoEra.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this era.ThaiBuddhistEra.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this era. -
Uses of TextStyle in java.time.format
Modifier and TypeMethodDescriptionTextStyle.asNormal()
Returns the normal style with the same size.TextStyle.asStandalone()
Returns the stand-alone style with the same size.static TextStyle
Returns the enum constant of this class with the specified name.static TextStyle[]
TextStyle.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendChronologyText
(TextStyle textStyle) Appends the chronology name to the formatter.DateTimeFormatterBuilder.appendDayPeriodText
(TextStyle style) Appends the day period text to the formatter.DateTimeFormatterBuilder.appendGenericZoneText
(TextStyle textStyle) Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilder.appendGenericZoneText
(TextStyle textStyle, Set<ZoneId> preferredZones) Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilder.appendLocalizedOffset
(TextStyle style) Appends the localized zone offset, such as 'GMT+01:00', to the formatter.DateTimeFormatterBuilder.appendText
(TemporalField field, TextStyle textStyle) Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder.appendZoneText
(TextStyle textStyle) Appends the time-zone name, such as 'British Summer Time', to the formatter.DateTimeFormatterBuilder.appendZoneText
(TextStyle textStyle, Set<ZoneId> preferredZones) Appends the time-zone name, such as 'British Summer Time', to the formatter.