Class IdentityFormatterFactory

  • All Implemented Interfaces:
    FormatterFactory

    class IdentityFormatterFactory
    extends java.lang.Object
    implements FormatterFactory
    Creates a Formatter that simply returns the String non-i18n aware representation of an object.
    • Constructor Detail

      • IdentityFormatterFactory

        IdentityFormatterFactory()
    • Method Detail

      • createFormatter

        public Formatter createFormatter​(java.util.Locale locale,
                                         java.util.Map<java.lang.String,​java.lang.Object> fixedOptions)
        The method that is called to create a formatter.
        Specified by:
        createFormatter in interface FormatterFactory
        Parameters:
        locale - the locale to use for formatting.
        fixedOptions - the options to use for formatting. The keys and values are function dependent.
        Returns:
        the formatter.