@Test public void testValidInput() { assertEquals(INPUT1, processor.execute(INPUT1, ANONYMOUS_CSVCONTEXT)); assertEquals(INPUT1, processorChain.execute(INPUT1, ANONYMOUS_CSVCONTEXT)); assertEquals(INPUT1, processorChain2.execute(INPUT1, ANONYMOUS_CSVCONTEXT)); assertEquals(INPUT2, processor.execute(INPUT2, ANONYMOUS_CSVCONTEXT)); assertEquals(INPUT2, processorChain2.execute(INPUT2, ANONYMOUS_CSVCONTEXT)); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); int hash = value.hashCode(); if( !requiredHashCodes.contains(hash) ) { throw new SuperCsvConstraintViolationException(String.format( "the hashcode of %d for value '%s' does not match any of the required hashcodes", hash, value), context, this); } return next.execute(value, context); }
RequireHashCode extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); int hash = value.hashCode(); if( !requiredHashCodes.contains(hash) ) { throw new SuperCsvConstraintViolationException(String.format( "the hashcode of %d for value '%s' does not match any of the required hashcodes", hash, value), context, this); } return next.execute(value, context); } }
RequireHashCode extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); int hash = value.hashCode(); if( !requiredHashCodes.contains(hash) ) { throw new SuperCsvConstraintViolationException(String.format( "the hashcode of %d for value '%s' does not match any of the required hashcodes", hash, value), context, this); } return next.execute(value, context); } RequireHashCode(final int... requiredHashcodes);  RequireHashCode(final int requiredHashcode, final CellProcessor next);  RequireHashCode(final int[] requiredHashcodes, final CellProcessor next); }
RequireHashCode extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); int hash = value.hashCode(); if( !requiredHashCodes.contains(hash) ) { throw new SuperCsvConstraintViolationException(String.format( "the hashcode of %d for value '%s' does not match any of the required hashcodes", hash, value), context, this); } return next.execute(value, context); } RequireHashCode(final int... requiredHashcodes);  RequireHashCode(final int requiredHashcode, final CellProcessor next);  RequireHashCode(final int[] requiredHashcodes, final CellProcessor next); Object execute(final Object value, final CsvContext context); }
RequireHashCode extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); int hash = value.hashCode(); if( !requiredHashCodes.contains(hash) ) { throw new SuperCsvConstraintViolationException(String.format( "the hashcode of %d for value '%s' does not match any of the required hashcodes", hash, value), context, this); } return next.execute(value, context); } RequireHashCode(final int... requiredHashcodes);  RequireHashCode(final int requiredHashcode, final CellProcessor next);  RequireHashCode(final int[] requiredHashcodes, final CellProcessor next); Object execute(final Object value, final CsvContext context);  }