Package com.ibm.icu.message2
Interface Function
-
@Deprecated public interface Function
Deprecated.This API is for technology preview only.The interface that must be implemented by all functions that can be used fromMessageFormatter.- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description FormattedPlaceholderformat(Object toFormat, Map<String,Object> variableOptions)Deprecated.This API is for technology preview only.StringformatToString(Object toFormat, Map<String,Object> variableOptions)Deprecated.This API is for technology preview only.default List<String>matches(Object value, List<String> keys, Map<String,Object> variableOptions)Deprecated.This API is for technology preview only.
-
-
-
Method Detail
-
formatToString
@Deprecated String formatToString(Object toFormat, Map<String,Object> variableOptions)
Deprecated.This API is for technology preview only.A method that takes the object to format and returns the i18n-aware string representation.- Parameters:
toFormat- the object to format.variableOptions- options that are not know at build time.- Returns:
- the formatted string.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
format
@Deprecated FormattedPlaceholder format(Object toFormat, Map<String,Object> variableOptions)
Deprecated.This API is for technology preview only.A method that takes the object to format and returns the i18n-aware formatted placeholder.- Parameters:
toFormat- the object to format.variableOptions- options that are not know at build time.- Returns:
- the formatted placeholder.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
matches
@Deprecated default List<String> matches(Object value, List<String> keys, Map<String,Object> variableOptions)
Deprecated.This API is for technology preview only.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, "*").- Parameters:
value- the value to select on.keys- the key to test for matching.variableOptions- options that are not know at build time.- Returns:
- the formatted string.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
-