public class BooleanFormatter extends AbstractFormatter<Boolean>
| Modifier and Type | Field and Description |
|---|---|
private static Formatter<Boolean> |
INSTANCE |
private Locale |
locale |
private NlsBundleUtilCoreRoot |
nlsBundle |
| Constructor and Description |
|---|
BooleanFormatter()
The constructor.
|
BooleanFormatter(Locale locale)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFormat(Boolean value,
Appendable buffer) |
protected String |
formatMessage(NlsMessage message) |
protected String |
formatNull()
Returns the (static) string representation for the undefined value
null. |
static Formatter<Boolean> |
getInstance() |
format, formatprivate final NlsBundleUtilCoreRoot nlsBundle
doFormat(Boolean, Appendable)private final Locale locale
doFormat(Boolean, Appendable)protected String formatNull()
AbstractFormatternull.formatNull in class AbstractFormatter<Boolean>protected void doFormat(Boolean value, Appendable buffer) throws IOException
doFormat in class AbstractFormatter<Boolean>value - is the value to format (not null).buffer - is the Appendable to append the formatted value to.IOException - if caused by append.AbstractFormatter.format(Object, Appendable)protected String formatMessage(NlsMessage message)
message - the NlsMessage to format as String.Copyright © 2001–2016 mmm-Team. All rights reserved.