org.ttzero.excel.processor.Converter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eec Show documentation
Show all versions of eec Show documentation
A fast and lower memory excel write/read tool
一个非POI底层支持流式处理的高效且超低内存的Excel读写工具
The newest version!
package org.ttzero.excel.processor;
import org.ttzero.excel.reader.Cell;
import org.ttzero.excel.reader.Row;
/**
* 转换器,包含{@link #conversion}和{@link #reversion}方法,前者用于输出时将Java数据转为Excel数据,
* 后者正好相反输入时将Excel数据转为Java数据
*
* @author guanquan.wang on 2023-11-14 11:49
*/
public interface Converter extends ConversionProcessor {
/**
* 输入转换器,读取Excel时将单元格的值转为指定类型{@code T}
*
* @param row 当前行{@link Row}
* @param cell 当前单元格{@link Cell}
* @param destClazz 转换后的类型
* @return 转换后的值
*/
T reversion(Row row, Cell cell, Class> destClazz);
/**
* 无类型转换,默认
*/
final class None implements Converter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy