Interface Converter<T>

Type Parameters:
T - Type to convert into or convert from
All Known Implementing Classes:
AbstractConverter, BigDecimalConverter, BooleanConverter, CalendarConverter, DateConverter, IntegerConverter, LongConverter, ShortConverter, StringConverter

public interface Converter<T>
Convert a Cell from/to a field.
Author:
Hylke Stapersma
  • Method Summary

    Modifier and Type
    Method
    Description
    readCell(org.apache.poi.ss.usermodel.Cell cell)
    Read a Cell and convert to [T]
    readCell(org.apache.poi.ss.usermodel.Cell cell, String regex)
    Read a Cell and convert to [T]
    void
    writeCell(org.apache.poi.ss.usermodel.Cell cell, T value)
    Write a [T] value to cell
  • Method Details

    • readCell

      T readCell(org.apache.poi.ss.usermodel.Cell cell, String regex)
      Read a Cell and convert to [T]
      Parameters:
      cell - to read
      regex - regex validation
      Returns:
      a converted object [T] from a cell
    • readCell

      T readCell(org.apache.poi.ss.usermodel.Cell cell)
      Read a Cell and convert to [T]
      Parameters:
      cell - to read
      Returns:
      a converted object [T] from a cell
    • writeCell

      void writeCell(org.apache.poi.ss.usermodel.Cell cell, T value)
      Write a [T] value to cell
      Parameters:
      cell - to write
      value - value to convert to cell