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