V
- is the generic type of the actual value to format
.public interface LocalizableFormatter<V> extends Formatter<V>
Formatter
that is localizable
. Methods inherited from
Formatter
will use Locale.getDefault()
.Modifier and Type | Method and Description |
---|---|
void |
format(V value,
Appendable buffer,
Locale locale)
|
String |
format(V value,
Locale locale)
This method formats the given
value for the given locale . |
String format(V value, Locale locale)
value
for the given locale
. StringBuilder
buffer = new StringBuilder();format
(value, buffer, locale); return buffer.toString();
value
- is the value to format. May be null
.locale
- is the Locale
.value
is null
, a legal implementation will return "null"
or "".void format(V value, Appendable buffer, Locale locale) throws RuntimeIoException
value
- is the value to format. May be null
.buffer
- is the Appendable
to append
the formatted value to.locale
- is the Locale
to use.RuntimeIoException
- if append
caused a IOException
.Copyright © 2001–2016 mmm-Team. All rights reserved.