Class NumericToIntEditor

java.lang.Object
org.aoju.bus.office.excel.cell.editors.NumericToIntEditor
All Implemented Interfaces:
CellEditor

public class NumericToIntEditor extends Object implements CellEditor
POI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • NumericToIntEditor

      public NumericToIntEditor()
  • Method Details

    • edit

      public Object edit(org.apache.poi.ss.usermodel.Cell cell, Object value)
      Description copied from interface: CellEditor
      编辑,根据单元格信息处理结果值,返回处理后的结果
      Specified by:
      edit in interface CellEditor
      Parameters:
      cell - 单元格对象,可以获取单元格行、列样式等信息
      value - 单元格值
      Returns:
      编辑后的对象