@Test(expected = SuperCsvCellProcessorException.class) public void testWithNull() { processor.execute(null, ANONYMOUS_CSVCONTEXT); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final BigDecimal result; if( value instanceof String ) { final String s = (String) value; try { if( symbols == null ) { result = new BigDecimal(s); } else { result = new BigDecimal(fixSymbols(s, symbols)); } } catch(final NumberFormatException e) { throw new SuperCsvCellProcessorException(String.format("'%s' could not be parsed as a BigDecimal", value), context, this, e); } } else { throw new SuperCsvCellProcessorException(String.class, value, context, this); } return next.execute(result, context); }
ParseBigDecimal extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final BigDecimal result; if( value instanceof String ) { final String s = (String) value; try { if( symbols == null ) { result = new BigDecimal(s); } else { result = new BigDecimal(fixSymbols(s, symbols)); } } catch(final NumberFormatException e) { throw new SuperCsvCellProcessorException(String.format("'%s' could not be parsed as a BigDecimal", value), context, this, e); } } else { throw new SuperCsvCellProcessorException(String.class, value, context, this); } return next.execute(result, context); } }
ParseBigDecimal extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final BigDecimal result; if( value instanceof String ) { final String s = (String) value; try { if( symbols == null ) { result = new BigDecimal(s); } else { result = new BigDecimal(fixSymbols(s, symbols)); } } catch(final NumberFormatException e) { throw new SuperCsvCellProcessorException(String.format("'%s' could not be parsed as a BigDecimal", value), context, this, e); } } else { throw new SuperCsvCellProcessorException(String.class, value, context, this); } return next.execute(result, context); } ParseBigDecimal();  ParseBigDecimal(final DecimalFormatSymbols symbols);  ParseBigDecimal(final CellProcessor next);  ParseBigDecimal(final DecimalFormatSymbols symbols, final CellProcessor next); }
ParseBigDecimal extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final BigDecimal result; if( value instanceof String ) { final String s = (String) value; try { if( symbols == null ) { result = new BigDecimal(s); } else { result = new BigDecimal(fixSymbols(s, symbols)); } } catch(final NumberFormatException e) { throw new SuperCsvCellProcessorException(String.format("'%s' could not be parsed as a BigDecimal", value), context, this, e); } } else { throw new SuperCsvCellProcessorException(String.class, value, context, this); } return next.execute(result, context); } ParseBigDecimal();  ParseBigDecimal(final DecimalFormatSymbols symbols);  ParseBigDecimal(final CellProcessor next);  ParseBigDecimal(final DecimalFormatSymbols symbols, final CellProcessor next); Object execute(final Object value, final CsvContext context); }
ParseBigDecimal extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final BigDecimal result; if( value instanceof String ) { final String s = (String) value; try { if( symbols == null ) { result = new BigDecimal(s); } else { result = new BigDecimal(fixSymbols(s, symbols)); } } catch(final NumberFormatException e) { throw new SuperCsvCellProcessorException(String.format("'%s' could not be parsed as a BigDecimal", value), context, this, e); } } else { throw new SuperCsvCellProcessorException(String.class, value, context, this); } return next.execute(result, context); } ParseBigDecimal();  ParseBigDecimal(final DecimalFormatSymbols symbols);  ParseBigDecimal(final CellProcessor next);  ParseBigDecimal(final DecimalFormatSymbols symbols, final CellProcessor next); Object execute(final Object value, final CsvContext context);  }