Top Description Methods
com.ibm.icu.message2

public Interface Formatter

Known Direct Implementers
com.ibm.icu.message2.IdentityFormatterFactory.IdentityFormatterImpl, com.ibm.icu.message2.NumberFormatterFactory.NumberFormatterImpl, com.ibm.icu.message2.DateTimeFormatterFactory.DateTimeFormatter
Annotations
@Deprecated
Imports
java.util.Map

Deprecated

This API is for technology preview only.

The interface that must be implemented by all formatters that can be used from MessageFormatter.
ICU Status
Internal ICU component: 72 technology preview

Method Summary

Modifier and TypeMethod and Description
public FormattedPlaceholder

Returns:

the formatted placeholder.
format
(Object
the object to format.
toFormat
,
Map<String, Object>
options that are not know at build time.
variableOptions
)

Deprecated This API is for technology preview only.
A method that takes the object to format and returns the i18n-aware formatted placeholder.
public String

Returns:

the formatted string.
formatToString
(Object
the object to format.
toFormat
,
Map<String, Object>
options that are not know at build time.
variableOptions
)

Deprecated This API is for technology preview only.
A method that takes the object to format and returns the i18n-aware string representation.

Method Detail

formatback to summary
public 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:Object

the object to format.

variableOptions:Map<String, Object>

options that are not know at build time.

Returns:FormattedPlaceholder

the formatted placeholder.

Annotations
@Deprecated
ICU Status
Internal ICU component: 72 technology preview
formatToStringback to summary
public 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:Object

the object to format.

variableOptions:Map<String, Object>

options that are not know at build time.

Returns:String

the formatted string.

Annotations
@Deprecated
ICU Status
Internal ICU component: 72 technology preview