Package com.ibm.icu.message2
Class MFFunctionRegistry.Builder
- java.lang.Object
-
- com.ibm.icu.message2.MFFunctionRegistry.Builder
-
- Enclosing class:
- MFFunctionRegistry
@Deprecated public static class MFFunctionRegistry.Builder extends java.lang.Object
Deprecated.This API is for technology preview only.ABuilder
used to build instances ofMFFunctionRegistry
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,java.lang.String>
classToFormatter
Deprecated.private java.util.Map<java.lang.String,FormatterFactory>
formattersMap
Deprecated.private java.util.Map<java.lang.String,SelectorFactory>
selectorsMap
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MFFunctionRegistry.Builder
addAll(MFFunctionRegistry functionRegistry)
Deprecated.This API is for technology preview only.MFFunctionRegistry
build()
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
clearDefaultFormatterNames()
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
clearFormatters()
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
clearSelectors()
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
removeDefaultFormatterNameForType(java.lang.Class<?> clazz)
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
removeFormatter(java.lang.String formatterName)
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
removeSelector(java.lang.String selectorName)
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
setDefaultFormatterNameForType(java.lang.Class<?> clazz, java.lang.String formatterName)
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
setFormatter(java.lang.String formatterName, FormatterFactory formatterFactory)
Deprecated.This API is for technology preview only.MFFunctionRegistry.Builder
setSelector(java.lang.String selectorName, SelectorFactory selectorFactory)
Deprecated.This API is for technology preview only.
-
-
-
Field Detail
-
formattersMap
private final java.util.Map<java.lang.String,FormatterFactory> formattersMap
Deprecated.
-
selectorsMap
private final java.util.Map<java.lang.String,SelectorFactory> selectorsMap
Deprecated.
-
classToFormatter
private final java.util.Map<java.lang.Class<?>,java.lang.String> classToFormatter
Deprecated.
-
-
Method Detail
-
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(java.lang.String formatterName, FormatterFactory formatterFactory)
Deprecated.This API is for technology preview only.Adds a mapping from a formatter name to aFormatterFactory
.- 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(java.lang.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(java.lang.Class<?> clazz, java.lang.String formatterName)
Deprecated.This API is for technology preview only.Adds a mapping from a type to format to aFormatterFactory
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(java.lang.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(java.lang.String selectorName, SelectorFactory selectorFactory)
Deprecated.This API is for technology preview only.Adds a mapping from a selector name to aSelectorFactory
.- 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(java.lang.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 public MFFunctionRegistry build()
Deprecated.This API is for technology preview only.Builds an instance ofMFFunctionRegistry
.- Returns:
- the function registry created.
-
-