Interface FunctionFactory


  • @Deprecated
    public interface FunctionFactory
    Deprecated.
    This API is for technology preview only.
    The interface that must be implemented for each formatting function name that can be used from MessageFormatter.

    We use it to create and cache various functions with various options.

    Status:
    Technology Preview. This API is still in the early stages of development. Use at your own risk.
    • Method Detail

      • create

        @Deprecated
        Function create​(Locale locale,
                        Map<String,​Object> fixedOptions)
        Deprecated.
        This API is for technology preview only.
        The method that is called to create a function.
        Parameters:
        locale - the locale to use for formatting / selection.
        fixedOptions - the options to use for formatting / selection. The keys and values are function dependent.
        Returns:
        the function.
        Throws:
        IllegalArgumentException - in case there is a problem with the arguments.
        Status:
        Technology Preview. This API is still in the early stages of development. Use at your own risk.