接口 DataCastAdapter<FT>

类型参数:
FT - 需要转换的Java类型
所有已知实现类:
AbstractDataCastAdapter, AutoAdapter, DefaultBooleanAdapter, DefaultDateTimeAdapter, DefaultNumericAdapter, DefaultStringAdapter

public interface DataCastAdapter<FT>
类型转换适配器
作者:
Toutatis_Gc
  • 方法概要

    修饰符和类型
    方法
    说明
    cast(CellGetInfo cellGetInfo, CastContext<FT> context)
    类型转换
    boolean
    support(org.apache.poi.ss.usermodel.CellType cellType, Class<FT> clazz)
    是否支持该类型进行转换
  • 方法详细资料

    • cast

      FT cast(CellGetInfo cellGetInfo, CastContext<FT> context)
      类型转换
      参数:
      cellGetInfo - 单元格信息
      context - 需要转换的类型
      返回:
      转换后的值
    • support

      boolean support(org.apache.poi.ss.usermodel.CellType cellType, Class<FT> clazz)
      是否支持该类型进行转换
      参数:
      cellType - 单元格类型
      clazz - 需要转换的类型
      返回:
      是否支持该类型进行转换