Package net.sf.basedb.util.excel
Class WrappedFormatter<T>
java.lang.Object
net.sf.basedb.util.excel.WrappedFormatter<T>
- All Implemented Interfaces:
ExcelFormatter<T,String>
public class WrappedFormatter<T> extends Object implements ExcelFormatter<T,String>
Excel formatter implementation that uses the value
from any parent formatter and creates a string cell
value.
- Since:
- 3.15
- Author:
- nicklas
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WrappedFormatter(Formatter<T> parent)
-
Method Summary
Modifier and Type Method Description ExcelValue<String>
toExcelValue(T value)
Convert and format the given value to an Excel value.
-
Field Details
-
parent
-
-
Constructor Details
-
WrappedFormatter
-
-
Method Details
-
toExcelValue
Description copied from interface:ExcelFormatter
Convert and format the given value to an Excel value. If the value is null the implementation may return null to create an empty cell or it may return another non-null value.- Specified by:
toExcelValue
in interfaceExcelFormatter<T,String>
-