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 Details

    • format

      String format(Temporal temporal)
      Formats the given temporal object into a localized string.
      Parameters:
      temporal - The temporal object to format, never null.
      Returns:
      A localized string representing the temporal object, never null.
    • 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.