Class DateTimeFormatterFactory.DateTimeFormatter

java.lang.Object
com.ibm.icu.message2.DateTimeFormatterFactory.DateTimeFormatter
All Implemented Interfaces:
Formatter
Enclosing class:
DateTimeFormatterFactory

private static class DateTimeFormatterFactory.DateTimeFormatter extends Object implements Formatter
  • Field Details

    • icuFormatter

      private final DateFormat icuFormatter
    • locale

      private final Locale locale
  • Constructor Details

  • Method Details

    • format

      public FormattedPlaceholder format(Object toFormat, Map<String,Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware formatted placeholder.
      Specified by:
      format in interface Formatter
      Parameters:
      toFormat - the object to format.
      variableOptions - options that are not know at build time.
      Returns:
      the formatted placeholder.
    • formatToString

      public String formatToString(Object toFormat, Map<String,Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware string representation.
      Specified by:
      formatToString in interface Formatter
      Parameters:
      toFormat - the object to format.
      variableOptions - options that are not know at build time.
      Returns:
      the formatted string.