public final class StringFormatTemplateFormatter extends Object implements TemplateFormatter
Formatter based TemplateFormatter.| Constructor and Description |
|---|
StringFormatTemplateFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String msgTemplate,
List<String> args,
Locale locale)
Formats a message template for the target locale.
|
String |
format(String msgTemplate,
List<String> args,
Locale locale,
TimeZone tz)
Formats a message template for the target locale.
|
public String format(String msgTemplate, List<String> args, Locale locale)
TemplateFormatterformat in interface TemplateFormattermsgTemplate - locale-specific message templateargs - arguments to substitute in the templatelocale - target locale; used to localize replaced argspublic String format(String msgTemplate, List<String> args, Locale locale, TimeZone tz)
TemplateFormatterformat in interface TemplateFormattermsgTemplate - locale-specific message templateargs - arguments to substitute in the templatelocale - target locale; used to localize replaced argstz - target time zone for date and time values; if null
default MessageFormat behavior will be usedCopyright © 2022. All rights reserved.