Package org.aoju.bus.office.excel.cell
Interface CellEditor
- All Known Implementing Classes:
NumericToIntEditor,TrimEditor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
单元格编辑器接口
在读取Excel值时,有时我们需要针对所有单元格统一处理结果值(如null转默认值)的情况
实现接口并调用reader.setCellEditor()设置编辑器
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
edit
编辑,根据单元格信息处理结果值,返回处理后的结果- Parameters:
cell- 单元格对象,可以获取单元格行、列样式等信息value- 单元格值- Returns:
- 编辑后的对象
-