Class 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
    • Constructor Detail

      • WrappedFormatter

        public WrappedFormatter​(Formatter<T> parent)
    • Method Detail

      • toExcelValue

        public ExcelValue<String> toExcelValue​(T value)
        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 interface ExcelFormatter<T,​String>