@Test public void testValidKey() { int validKey = 1; assertEquals("1", processor.execute(validKey, ANONYMOUS_CSVCONTEXT)); assertEquals("1", processor2.execute(validKey, ANONYMOUS_CSVCONTEXT)); assertEquals("1", processorChain.execute(validKey, ANONYMOUS_CSVCONTEXT)); assertEquals("1", processorChain2.execute(validKey, ANONYMOUS_CSVCONTEXT)); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); Object result = mapping.get(value); if( result == null ) { result = defaultValue; } return next.execute(result, context); }
HashMapper extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); Object result = mapping.get(value); if( result == null ) { result = defaultValue; } return next.execute(result, context); } }
HashMapper extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); Object result = mapping.get(value); if( result == null ) { result = defaultValue; } return next.execute(result, context); } HashMapper(final Map<Object, Object> mapping);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue);  HashMapper(final Map<Object, Object> mapping, final CellProcessor next);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue, final CellProcessor next); }
HashMapper extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); Object result = mapping.get(value); if( result == null ) { result = defaultValue; } return next.execute(result, context); } HashMapper(final Map<Object, Object> mapping);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue);  HashMapper(final Map<Object, Object> mapping, final CellProcessor next);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue, final CellProcessor next); Object execute(final Object value, final CsvContext context); }
HashMapper extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); Object result = mapping.get(value); if( result == null ) { result = defaultValue; } return next.execute(result, context); } HashMapper(final Map<Object, Object> mapping);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue);  HashMapper(final Map<Object, Object> mapping, final CellProcessor next);  HashMapper(final Map<Object, Object> mapping, final Object defaultValue, final CellProcessor next); Object execute(final Object value, final CsvContext context);  }