Class IdentityFormatterFactory.IdentityFormatterImpl

java.lang.Object
com.ibm.icu.message2.IdentityFormatterFactory.IdentityFormatterImpl
All Implemented Interfaces:
Formatter
Enclosing class:
IdentityFormatterFactory

private static class IdentityFormatterFactory.IdentityFormatterImpl extends Object implements Formatter
  • Constructor Details

    • IdentityFormatterImpl

      private IdentityFormatterImpl()
  • 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.