Class MFFunctionRegistry.Builder

java.lang.Object
com.ibm.icu.message2.MFFunctionRegistry.Builder
Enclosing class:
MFFunctionRegistry

@Deprecated public static class MFFunctionRegistry.Builder extends Object
Deprecated.
This API is for technology preview only.
A Builder used to build instances of MFFunctionRegistry.
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
      Deprecated.
  • Method Details

    • addAll

      @Deprecated public MFFunctionRegistry.Builder addAll(MFFunctionRegistry functionRegistry)
      Deprecated.
      This API is for technology preview only.
      Adds all the mapping from another registry to this one.
      Parameters:
      functionRegistry - the registry to copy from.
      Returns:
      the builder, for fluent use.
    • setFormatter

      @Deprecated public MFFunctionRegistry.Builder setFormatter(String formatterName, FormatterFactory formatterFactory)
      Deprecated.
      This API is for technology preview only.
      Adds a mapping from a formatter name to a FormatterFactory.
      Parameters:
      formatterName - the function name (as used in the MessageFormat 2 syntax).
      formatterFactory - the factory that handles the name.
      Returns:
      the builder, for fluent use.
    • removeFormatter

      @Deprecated public MFFunctionRegistry.Builder removeFormatter(String formatterName)
      Deprecated.
      This API is for technology preview only.
      Remove the formatter associated with the name.
      Parameters:
      formatterName - the name of the formatter to remove.
      Returns:
      the builder, for fluent use.
    • clearFormatters

      @Deprecated public MFFunctionRegistry.Builder clearFormatters()
      Deprecated.
      This API is for technology preview only.
      Remove all the formatter mappings.
      Returns:
      the builder, for fluent use.
    • setDefaultFormatterNameForType

      @Deprecated public MFFunctionRegistry.Builder setDefaultFormatterNameForType(Class<?> clazz, String formatterName)
      Deprecated.
      This API is for technology preview only.
      Adds a mapping from a type to format to a FormatterFactory formatter name.
      Parameters:
      clazz - the class of the type to format.
      formatterName - the formatter name (as used in the MessageFormat 2 syntax).
      Returns:
      the builder, for fluent use.
    • removeDefaultFormatterNameForType

      @Deprecated public MFFunctionRegistry.Builder removeDefaultFormatterNameForType(Class<?> clazz)
      Deprecated.
      This API is for technology preview only.
      Remove the function name associated with the class.
      Parameters:
      clazz - the class to remove the mapping for.
      Returns:
      the builder, for fluent use.
    • clearDefaultFormatterNames

      @Deprecated public MFFunctionRegistry.Builder clearDefaultFormatterNames()
      Deprecated.
      This API is for technology preview only.
      Remove all the class to formatter-names mappings.
      Returns:
      the builder, for fluent use.
    • setSelector

      @Deprecated public MFFunctionRegistry.Builder setSelector(String selectorName, SelectorFactory selectorFactory)
      Deprecated.
      This API is for technology preview only.
      Adds a mapping from a selector name to a SelectorFactory.
      Parameters:
      selectorName - the function name (as used in the MessageFormat 2 syntax).
      selectorFactory - the factory that handles the name.
      Returns:
      the builder, for fluent use.
    • removeSelector

      @Deprecated public MFFunctionRegistry.Builder removeSelector(String selectorName)
      Deprecated.
      This API is for technology preview only.
      Remove the selector associated with the name.
      Parameters:
      selectorName - the name of the selector to remove.
      Returns:
      the builder, for fluent use.
    • clearSelectors

      @Deprecated public MFFunctionRegistry.Builder clearSelectors()
      Deprecated.
      This API is for technology preview only.
      Remove all the selector mappings.
      Returns:
      the builder, for fluent use.
    • build

      Deprecated.
      This API is for technology preview only.
      Builds an instance of MFFunctionRegistry.
      Returns:
      the function registry created.