/** * {@inheritDoc} * * @throws SuperCsvCellProcessorException * if value is null * @throws SuperCsvConstraintViolationException * if value isn't one of the required hash codes */ 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); }