public class BooleanFormatter extends Object
| Constructor and Description |
|---|
BooleanFormatter(TruthValues mapping)
Creates a formatter using the specified mapping.
|
BooleanFormatter(TruthValues mapping,
String nullIndicator)
Creates a formatter using the specified mapping.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format()
Formats the current value of the source as a text value.
|
void |
setSource(ScalarValued source)
Sets the container holding values to be formatted.
|
public BooleanFormatter(TruthValues mapping)
mapping - the mapping of boolean values to
stringspublic BooleanFormatter(TruthValues mapping, String nullIndicator)
mapping - the mapping of boolean values to
stringsnullIndicator - the text value to use for null valuespublic final void setSource(ScalarValued source)
TokenFormattersetSource in interface TokenFormattersource - the value container to formatpublic final String format()
TokenFormatterformat in interface TokenFormatterCopyright © 2020 Actian Corporation. All rights reserved.