This is the main method used by applications at the end of the build process to create a usable formatter.
Subsequent changes to this builder do not affect the returned formatter.
The returned formatter may not support both printing and parsing. The methods {@link DateTimeFormatter#isPrinter()} and{@link DateTimeFormatter#isParser()} will help you determine the stateof the formatter. @throws UnsupportedOperationException if neither printing nor parsing is supported
This is the main method used by applications at the end of the build process to create a usable formatter.
Subsequent changes to this builder do not affect the returned formatter.
The returned formatter may not support both printing and parsing. The methods {@link PeriodFormatter#isPrinter()} and{@link PeriodFormatter#isParser()} will help you determine the stateof the formatter. @return the newly created formatter @throws IllegalStateException if the builder can produce neither a printer nor a parser
This will create a formatter with the default locale. Numbers will be printed and parsed using the standard non-localized set of symbols.
Calling this method will end any open optional sections by repeatedly calling {@link #optionalEnd()} before creating the formatter.
This builder can still be used after creating the formatter if desired, although the state may have been changed by calls to {@code optionalEnd}. @return the created formatter, not null
|
|
|
|