public final class StringFormatTemplateFormatter extends java.lang.Object implements TemplateFormatter
Formatter
based TemplateFormatter
.Constructor and Description |
---|
StringFormatTemplateFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.String msgTemplate,
java.util.List<java.lang.String> args,
java.util.Locale locale)
Formats a message template for the target locale.
|
public java.lang.String format(java.lang.String msgTemplate, java.util.List<java.lang.String> args, java.util.Locale locale)
TemplateFormatter
format
in interface TemplateFormatter
msgTemplate
- locale-specific message templateargs
- arguments to substitute in the templatelocale
- target locale; used to localize replaced args