Class TextFunctionFactory.TextFunctionImpl
java.lang.Object
com.ibm.icu.message2.TextFunctionFactory.TextFunctionImpl
- All Implemented Interfaces:
Function
- Enclosing class:
TextFunctionFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA method that takes the object to format and returns the i18n-aware formatted placeholder.formatToString(Object toFormat, Map<String, Object> variableOptions) A method that takes the object to format and returns the i18n-aware string representation.private booleanA method that is invoked for the object to match on each key.
-
Field Details
-
directionality
-
-
Constructor Details
-
TextFunctionImpl
-
-
Method Details
-
formatToString
A method that takes the object to format and returns the i18n-aware string representation.- Specified by:
formatToStringin interfaceFunction- Parameters:
toFormat- the object to format.variableOptions- options that are not know at build time.- Returns:
- the formatted string.
-
format
A method that takes the object to format and returns the i18n-aware formatted placeholder. -
matches
A method that is invoked for the object to match on each key.For example, an English plural
matcheswould returntrueformatches(1, "1"),matches(1, "one"), andmatches(1, "*"). -
matches
-