Class NumericToIntEditor
java.lang.Object
org.aoju.bus.office.excel.cell.editors.NumericToIntEditor
- All Implemented Interfaces:
CellEditor
POI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NumericToIntEditor
public NumericToIntEditor()
-
-
Method Details
-
edit
Description copied from interface:CellEditor编辑,根据单元格信息处理结果值,返回处理后的结果- Specified by:
editin interfaceCellEditor- Parameters:
cell- 单元格对象,可以获取单元格行、列样式等信息value- 单元格值- Returns:
- 编辑后的对象
-