Class MFFunctionRegistry.Builder
java.lang.Object
com.ibm.icu.message2.MFFunctionRegistry.Builder
- Enclosing class:
MFFunctionRegistry
Deprecated.
This API is for technology preview only.
A
Builder used to build instances of MFFunctionRegistry.-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.private final Map<String, FunctionFactory> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAll(MFFunctionRegistry functionRegistry) Deprecated.This API is for technology preview only.build()Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.removeDefaultFunctionNameForType(Class<?> clazz) Deprecated.This API is for technology preview only.removeFunction(String functionName) Deprecated.This API is for technology preview only.setDefaultFunctionNameForType(Class<?> clazz, String functionName) Deprecated.This API is for technology preview only.setFunction(String functionName, FunctionFactory functionFactory) Deprecated.This API is for technology preview only.
-
Field Details
-
functionMap
Deprecated. -
classToFunction
-
-
Constructor Details
-
Builder
private Builder()Deprecated.
-
-
Method Details
-
addAll
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.
-
setFunction
@Deprecated public MFFunctionRegistry.Builder setFunction(String functionName, FunctionFactory functionFactory) Deprecated.This API is for technology preview only.Adds a mapping from a function name to aFunctionFactory.- Parameters:
functionName- the function name (as used in the MessageFormat 2 syntax).functionFactory- the factory that handles the name.- Returns:
- the builder, for fluent use.
-
removeFunction
Deprecated.This API is for technology preview only.Remove the function associated with the name.- Parameters:
functionName- the name of the function to remove.- Returns:
- the builder, for fluent use.
-
clearFunctions
Deprecated.This API is for technology preview only.Remove all the function mappings.- Returns:
- the builder, for fluent use.
-
setDefaultFunctionNameForType
@Deprecated public MFFunctionRegistry.Builder setDefaultFunctionNameForType(Class<?> clazz, String functionName) Deprecated.This API is for technology preview only.Adds a mapping from a type to format to aFunctionFactoryfunction name.- Parameters:
clazz- the class of the type to format.functionName- the unction name (as used in the MessageFormat 2 syntax).- Returns:
- the builder, for fluent use.
-
removeDefaultFunctionNameForType
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.
-
clearDefaultFunctionNames
Deprecated.This API is for technology preview only.Remove all the class to function-names mappings.- Returns:
- the builder, for fluent use.
-
build
Deprecated.This API is for technology preview only.Builds an instance ofMFFunctionRegistry.- Returns:
- the function registry created.
-