BoolCellProcessor, CellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessorpublic class Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
next| Constructor | Description |
|---|---|
Equals() |
Constructs a new Equals processor, which ensures all input data is equal.
|
Equals(Object constantValue) |
Constructs a new Equals processor, which ensures all input data is equal to the supplied constant value.
|
Equals(Object constantValue,
CellProcessor next) |
Constructs a new Equals processor, which ensures all input data is equal to the supplied constant value,
then calls the the next processor in the chain.
|
Equals(CellProcessor next) |
Constructs a new Equals processor, which ensures all input data is equal, then calls the 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 Equals()
public Equals(Object constantValue)
constantValue - the constant value that all input must equalpublic Equals(CellProcessor next)
next - the next processor in the chainNullPointerException - if next is nullpublic Equals(Object constantValue, CellProcessor next)
constantValue - the constant value that all input must equalnext - the next processor in the chainNullPointerException - if next is nullpublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorvalue - the value to be processedcontext - the CSV contextSuperCsvConstraintViolationException - if value isn't equal to the constant value (or previously encountered value if a constant wasn't
supplied)Copyright © 2007–2018 Super CSV. All rights reserved.