Interface IPresetTemporalFormatterBuilder
public interface IPresetTemporalFormatterBuilder
Builder for formatting a temporal object (like a date or time) into a localized string, see
IPresetTemporalFormatter. Allows configuring various options before calling format(Temporal).- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionFormats the given temporal object into a localized string.Sets the locale to use when the formatting style requires locale-sensitive operations.Sets the default time zone to use when atime zone required and the temporal to format does not have a zone.
-
Method Details
-
format
-
locale
Sets the locale to use when the formatting style requires locale-sensitive operations. When not given, an implementation-specific default is used.- Parameters:
locale- The locale to use for formatting, never null.- Returns:
- The builder instance for method chaining.
-
zone
Sets the default time zone to use when atime zone required and the temporal to format does not have a zone. When not given, an implementation-specific default is used.- Parameters:
zone- The time zone to use for formatting, never null.- Returns:
- The builder instance for method chaining.
-