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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TreadCell(org.apache.poi.ss.usermodel.Cell cell)Read a Cell and convert to [T]TreadCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.String regex)Read a Cell and convert to [T]voidwriteCell(org.apache.poi.ss.usermodel.Cell cell, T value)Write a [T] value to cell
-
-
-
Method Detail
-
readCell
T readCell(org.apache.poi.ss.usermodel.Cell cell, java.lang.String regex)
Read a Cell and convert to [T]- Parameters:
cell- to readregex- 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 writevalue- value to convert to cell
-
-