Uses of Class
java.time.format.TextStyle
-
Packages that use TextStyle Package Description java.time The main API for dates, times, instants, and durations.java.time.chrono Generic API for calendar systems other than the default ISO.java.time.format Provides classes to print and parse dates and times. -
-
Uses of TextStyle in java.time
Methods in java.time with parameters of type TextStyle Modifier and Type Method Description StringDayOfWeek. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Mon' or 'Friday'.StringMonth. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Jan' or 'December'.StringZoneId. 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
Methods in java.time.chrono with parameters of type TextStyle Modifier and Type Method Description default StringChronology. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this chronology.default StringEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringHijrahEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringJapaneseEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringMinguoEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringThaiBuddhistEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era. -
Uses of TextStyle in java.time.format
Methods in java.time.format that return TextStyle Modifier and Type Method Description TextStyleTextStyle. asNormal()Returns the normal style with the same size.TextStyleTextStyle. asStandalone()Returns the stand-alone style with the same size.static TextStyleTextStyle. valueOf(String name)Returns the enum constant of this type with the specified name.static TextStyle[]TextStyle. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in java.time.format with parameters of type TextStyle Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendChronologyText(TextStyle textStyle)Appends the chronology name to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle)Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendLocalizedOffset(TextStyle style)Appends the localized zone offset, such as 'GMT+01:00', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendText(TemporalField field, TextStyle textStyle)Appends the text of a date-time field to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendZoneText(TextStyle textStyle)Appends the time-zone name, such as 'British Summer Time', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendZoneText(TextStyle textStyle, Set<ZoneId> preferredZones)Appends the time-zone name, such as 'British Summer Time', to the formatter.
-