public class IntegerFieldProcessor extends Object implements FieldProcessor<Long>
| Constructor and Description |
|---|
IntegerFieldProcessor(String thousandsSeparator,
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 n)
Prepare a value for CSV file.
|
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 n)
FieldProcessortoString in interface FieldProcessor<Long>n - the valuepublic String toCanonicalString(String text)
FieldProcessortoCanonicalString in interface FieldProcessor<Long>text - the text valuepublic Long cast(Object o)
FieldProcessorcast in interface FieldProcessor<Long>o - the objectCopyright © 2020–2021. All rights reserved.