Uses of Class
javax.time.calendar.format.DateTimeFormatterBuilder
Packages that use DateTimeFormatterBuilder
Package
Description
Provides classes to format dates and times as strings.
-
Uses of DateTimeFormatterBuilder in javax.time.calendar.format
Fields in javax.time.calendar.format declared as DateTimeFormatterBuilderModifier and TypeFieldDescriptionprivate DateTimeFormatterBuilder
DateTimeFormatterBuilder.active
The currently active builder, used by the outermost builder.private final DateTimeFormatterBuilder
DateTimeFormatterBuilder.parent
The parent builder, null for the outermost builder.Methods in javax.time.calendar.format that return DateTimeFormatterBuilderModifier and TypeMethodDescriptionDateTimeFormatterBuilder.append
(DateTimeFormatter formatter) Appends all the elements of a formatter to the builder.DateTimeFormatterBuilder.append
(DateTimePrinter printer, DateTimeParser parser) Appends a printer and/or parser to the formatter.private DateTimeFormatterBuilder
DateTimeFormatterBuilder.appendFixedWidth
(int width, NumberPrinterParser pp) Appends a fixed width printer-parser.DateTimeFormatterBuilder.appendFraction
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth) Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilder.appendLiteral
(char literal) Appends a character literal to the formatter.DateTimeFormatterBuilder.appendLiteral
(String literal) Appends a string literal to the formatter.DateTimeFormatterBuilder.appendLocalized
(DateTimeFormatterBuilder.FormatStyle dateStyle, DateTimeFormatterBuilder.FormatStyle timeStyle) Appends a localized date-time pattern to the formatter.DateTimeFormatterBuilder.appendLocalized
(DateTimeFormatterBuilder.FormatStyle dateStyle, DateTimeFormatterBuilder.FormatStyle timeStyle, Chronology chronology) Appends a localized date-time pattern to the formatter.DateTimeFormatterBuilder.appendOffset
(String utcText, boolean includeColon, boolean allowSeconds) Appends the zone offset, such as '+01:00', to the formatter.DateTimeFormatterBuilder.appendOffsetId()
Appends the zone offset, such as '+01:00', to the formatter.DateTimeFormatterBuilder.appendOptional
(DateTimeFormatter formatter) Appends a formatter to the builder which will optionally print/parse.DateTimeFormatterBuilder.appendPattern
(String pattern) Appends the elements defined by the specified pattern to the builder.DateTimeFormatterBuilder.appendText
(DateTimeFieldRule<?> rule) Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilder.appendText
(DateTimeFieldRule<?> rule, DateTimeFormatterBuilder.TextStyle textStyle) Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder.appendValue
(DateTimeFieldRule<?> rule) Appends the value of a date-time field to the formatter using a normal output style.DateTimeFormatterBuilder.appendValue
(DateTimeFieldRule<?> rule, int width) Appends the value of a date-time field to the formatter using a fixed width, zero-padded approach.DateTimeFormatterBuilder.appendValue
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle) Appends the value of a date-time field to the formatter providing full control over printing.DateTimeFormatterBuilder.appendValueReduced
(DateTimeFieldRule<?> rule, int width, int baseValue) Appends the reduced value of a date-time field to the formatter.DateTimeFormatterBuilder.appendZoneId()
Appends the time-zone rule id, such as 'Europe/Paris', to the formatter.DateTimeFormatterBuilder.appendZoneText
(DateTimeFormatterBuilder.TextStyle textStyle) Appends the time-zone rule name, such as 'British Summer Time', to the formatter.DateTimeFormatterBuilder.optionalEnd()
Ends an optional section.DateTimeFormatterBuilder.optionalStart()
Mark the start of an optional section.DateTimeFormatterBuilder.padNext
(int padWidth) Causes the next added printer/parser to pad to a fixed width using a space.DateTimeFormatterBuilder.padNext
(int padWidth, char padChar) Causes the next added printer/parser to pad to a fixed width.DateTimeFormatterBuilder.parseCaseInsensitive()
Changes the parse style to be case insensitive for the remainder of the formatter.DateTimeFormatterBuilder.parseCaseSensitive()
Changes the parse style to be case sensitive for the remainder of the formatter.DateTimeFormatterBuilder.parseLenient()
Changes the parse style to be lenient for the remainder of the formatter.DateTimeFormatterBuilder.parseStrict()
Changes the parse style to be strict for the remainder of the formatter.Constructors in javax.time.calendar.format with parameters of type DateTimeFormatterBuilderModifierConstructorDescriptionprivate
DateTimeFormatterBuilder
(DateTimeFormatterBuilder parent, boolean optional) Constructs a new instance of the builder.