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