public class DecimalFieldProcessor extends Object implements FieldProcessor<BigDecimal>
| Constructor and Description |
|---|
DecimalFieldProcessor(String thousandsSeparator,
String decimalSeparator,
String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
toObject(String text)
Prepare a value for a consumer
|
String |
toString(BigDecimal bd)
Prepare a value for CSV file.
|
public BigDecimal toObject(String text) throws MetaCSVReadException
FieldProcessortoObject in interface FieldProcessor<BigDecimal>text - the CSV valueMetaCSVReadExceptionpublic String toString(BigDecimal bd)
FieldProcessortoString in interface FieldProcessor<BigDecimal>bd - the valueCopyright © 2020–2021. All rights reserved.