public class PercentageDecimalFieldProcessor extends Object implements FieldProcessor<BigDecimal>
| Modifier and Type | Field and Description |
|---|---|
static BigDecimal |
HUNDRED |
| Constructor and Description |
|---|
PercentageDecimalFieldProcessor(boolean pre,
String symbol,
FieldProcessor<BigDecimal> numberProcessor,
String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
toObject(String text)
Prepare a value for a consumer
|
String |
toString(BigDecimal value)
Prepare a value for CSV file.
|
public static final BigDecimal HUNDRED
public PercentageDecimalFieldProcessor(boolean pre,
String symbol,
FieldProcessor<BigDecimal> numberProcessor,
String nullValue)
public BigDecimal toObject(String text) throws MetaCSVReadException
FieldProcessortoObject in interface FieldProcessor<BigDecimal>text - the CSV valueMetaCSVReadExceptionpublic String toString(BigDecimal value)
FieldProcessortoString in interface FieldProcessor<BigDecimal>value - the valueCopyright © 2020–2021. All rights reserved.