Top Description Fields Constructors Methods
com.ibm.icu.message2

public Class FormattedPlaceholder

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
com.ibm.icu.text.FormattedValue

Deprecated

This API is for ICU internal use only.

An immutable, richer formatting result, encapsulating a FormattedValue, the original value to format, and we are considering adding some more info. Very preliminary.
ICU Status
Internal ICU component: 72 technology preview

Field Summary

Modifier and TypeField and Description
private final FormattedValue
private final Object

Constructor Summary

AccessConstructor and Description
public
FormattedPlaceholder(Object
the original value to be formatted.
inputValue
,
FormattedValue
the result of formatting the placeholder.
formattedValue
)

Deprecated This API is for ICU internal use only.
Constructor creating the FormattedPlaceholder.

Method Summary

Modifier and TypeMethod and Description
public FormattedValue

Returns:

the result of formatting the placeholder.
getFormattedValue
()

Deprecated This API is for ICU internal use only.
Retrieve the formatted value.
public Object

Returns:

the original value to be formatted.
getInput
()

Deprecated This API is for ICU internal use only.
Retrieve the original input value that was formatted.
public String

Returns:

a string representation of the object.
toString
()

Overrides java.lang.Object.toString.

Deprecated This API is for ICU internal use only.
Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

formattedValueback to summary
private final FormattedValue formattedValue
inputValueback to summary
private final Object inputValue

Constructor Detail

FormattedPlaceholderback to summary
public FormattedPlaceholder(Object inputValue, FormattedValue formattedValue)

Deprecated

This API is for ICU internal use only.

Constructor creating the FormattedPlaceholder.

Parameters
inputValue:Object

the original value to be formatted.

formattedValue:FormattedValue

the result of formatting the placeholder.

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

Method Detail

getFormattedValueback to summary
public FormattedValue getFormattedValue()

Deprecated

This API is for ICU internal use only.

Retrieve the formatted value.

Returns:FormattedValue

the result of formatting the placeholder.

Annotations
@Deprecated
ICU Status
Internal ICU component: 72 technology preview
getInputback to summary
public Object getInput()

Deprecated

This API is for ICU internal use only.

Retrieve the original input value that was formatted.

Returns:Object

the original value to be formatted.

Annotations
@Deprecated
ICU Status
Internal ICU component: 72 technology preview
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Deprecated

This API is for ICU internal use only.

Returns a string representation of the object. It can be null, which is unusual, and we plan to change that.

Returns:String

a string representation of the object.

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