public class Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
next
Constructor and Description |
---|
Equals()
Constructs a new Equals processor, which ensures all input data is equal.
|
Equals(CellProcessor next)
Constructs a new Equals processor, which ensures all input data is equal, then calls the the next
processor in the chain.
|
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.
|
Modifier and Type | Method and 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, validateInputNotNull
public 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 CellProcessor
value
- 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–2015 Super CSV. All rights reserved.