public class NotNull extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
You should only use this processor when a column must be non-null, but you do not need to apply any other processor to the column (i.e. a mandatory String column with no other conversions or constraints)
If you apply other processors to the column, you can safely omit this processor as all other processors should do a null-check on its input.
|Constructor and Description|
Constructs a new NotNull which ensures that the input is not null.
Constructs a new NotNull which ensures that the input is not null, then calls the next processor in the chain.
|Modifier and Type||Method and Description|
This method is invoked by the framework when the processor needs to process data or check constraints.
public NotNull(CellProcessor next)
next- the next processor in the chain
public Object execute(Object value, CsvContext context)
Copyright © 2007–2015 Super CSV. All rights reserved.