public class BooleanFieldProcessor extends Object implements FieldProcessor<Boolean>
| Constructor and Description |
|---|
BooleanFieldProcessor(String trueWord,
String falseWord,
String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
cast(Object o)
For lenient writer: cast an objet to T type
|
String |
toCanonicalString(String text)
Prepare a value for a canonical String
|
Boolean |
toObject(String text)
Prepare a value for a consumer
|
String |
toString(Boolean value)
Prepare a value for CSV file.
|
public Boolean toObject(String text) throws MetaCSVReadException
FieldProcessortoObject in interface FieldProcessor<Boolean>text - the CSV valueMetaCSVReadException - if the text can't be converted to a T value.public String toString(Boolean value)
FieldProcessortoString in interface FieldProcessor<Boolean>value - the valuepublic String toCanonicalString(String text) throws MetaCSVReadException
FieldProcessortoCanonicalString in interface FieldProcessor<Boolean>text - the text valueMetaCSVReadException - if the text can't be converted to a T value.public Boolean cast(Object o)
FieldProcessorcast in interface FieldProcessor<Boolean>o - the objectCopyright © 2020–2021. All rights reserved.