public final class MessageFormatter extends Object
Unlike MessageFormat, there are no argument indices in placeholders. Instead, the order of arguments counts.
Choice format and decimal format compatible patterns can be used in placeholders.
ChoiceFormat,
DecimalFormat| Constructor and Description |
|---|
MessageFormatter(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String message,
Object[] arguments)
Formats a text message.
|
public MessageFormatter(Locale locale)
locale - Locale for formatting numbersCopyright © 2020. All rights reserved.