public class BigDecimalStringConverter extends Object implements Converter<BigDecimal>
| Constructor and Description |
|---|
BigDecimalStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
WriteCellData<?> |
convertToExcelData(BigDecimal value,
ExcelContentProperty contentProperty,
GlobalConfiguration globalConfiguration)
Converts a BigDecimal object to Excel cell data in string format.
|
BigDecimal |
convertToJavaData(ReadCellData<?> cellData,
ExcelContentProperty contentProperty,
GlobalConfiguration globalConfiguration)
Converts Excel cell data to a BigDecimal object.
|
CellDataTypeEnum |
supportExcelTypeKey()
Specifies the Excel cell data type supported by this converter.
|
Class<BigDecimal> |
supportJavaTypeKey()
Specifies the Java type supported by this converter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToExcelData, convertToJavaDatapublic Class<BigDecimal> supportJavaTypeKey()
supportJavaTypeKey in interface Converter<BigDecimal>public CellDataTypeEnum supportExcelTypeKey()
supportExcelTypeKey in interface Converter<BigDecimal>public BigDecimal convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws ParseException
convertToJavaData in interface Converter<BigDecimal>cellData - The Excel cell data containing the string value.contentProperty - The content property associated with the cell.globalConfiguration - The global configuration for the conversion process.ParseException - If there is an error parsing the string to a BigDecimal.public WriteCellData<?> convertToExcelData(BigDecimal value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration)
convertToExcelData in interface Converter<BigDecimal>value - The BigDecimal value to be converted.contentProperty - The content property associated with the cell.globalConfiguration - The global configuration for the conversion process.Copyright © 2024–2025 fast-excel. All rights reserved.