BoolCellProcessor, CellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessorpublic 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.
next| Constructor | Description |
|---|---|
NotNull() |
Constructs a new NotNull which ensures that the input is not null.
|
NotNull(CellProcessor next) |
Constructs a new NotNull which ensures that the input is not null, then calls the next
processor in the chain.
|
| Modifier and Type | Method | Description |
|---|---|---|
Object |
execute(Object value,
CsvContext context) |
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNullpublic NotNull()
public NotNull(CellProcessor next)
next - the next processor in the chainpublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorvalue - the value to be processedcontext - the CSV contextSuperCsvCellProcessorException - if value is nullCopyright © 2007–2018 Super CSV. All rights reserved.