T - public interface Converter<T>
| 限定符和类型 | 方法和说明 |
|---|---|
default WriteCellData<?> |
convertToExcelData(T value,
ExcelContentProperty contentProperty,
GlobalConfiguration globalConfiguration)
Convert Java objects to excel objects
|
default WriteCellData<?> |
convertToExcelData(WriteConverterContext<T> context)
Convert Java objects to excel objects
|
default T |
convertToJavaData(ReadCellData<?> cellData,
ExcelContentProperty contentProperty,
GlobalConfiguration globalConfiguration)
Convert excel objects to Java objects
|
default T |
convertToJavaData(ReadConverterContext<?> context)
Convert excel objects to Java objects
|
default CellDataTypeEnum |
supportExcelTypeKey()
Back to object enum in excel
|
default Class<?> |
supportJavaTypeKey()
Back to object types in Java
|
default Class<?> supportJavaTypeKey()
default CellDataTypeEnum supportExcelTypeKey()
CellDataTypeEnumdefault T convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception
cellData - Excel cell data.NotNull.contentProperty - Content property.Nullable.globalConfiguration - Global configuration.NotNull.Exception - Exception.default T convertToJavaData(ReadConverterContext<?> context) throws Exception
context - read converter contextException - Exception.default WriteCellData<?> convertToExcelData(T value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception
value - Java Data.NotNull.contentProperty - Content property.Nullable.globalConfiguration - Global configuration.NotNull.Exception - Exception.default WriteCellData<?> convertToExcelData(WriteConverterContext<T> context) throws Exception
context - write contextException - Exception.Copyright © 2018–2022 Alibaba Group. All rights reserved.