@Test void processCell_header() { assertEquals("COL", processCell("col", true, processors)); }
public static String processCell( String value, boolean isHeader, List<CellProcessor> cellProcessors) { if (cellProcessors != null) { for (CellProcessor cellProcessor : cellProcessors) { boolean process = (isHeader && cellProcessor.processHeader()) || (!isHeader && cellProcessor.processData()); if (process) value = cellProcessor.process(value); } } return value; }
AbstractCellProcessor implements CellProcessor { public static String processCell( String value, boolean isHeader, List<CellProcessor> cellProcessors) { if (cellProcessors != null) { for (CellProcessor cellProcessor : cellProcessors) { boolean process = (isHeader && cellProcessor.processHeader()) || (!isHeader && cellProcessor.processData()); if (process) value = cellProcessor.process(value); } } return value; } }
AbstractCellProcessor implements CellProcessor { public static String processCell( String value, boolean isHeader, List<CellProcessor> cellProcessors) { if (cellProcessors != null) { for (CellProcessor cellProcessor : cellProcessors) { boolean process = (isHeader && cellProcessor.processHeader()) || (!isHeader && cellProcessor.processData()); if (process) value = cellProcessor.process(value); } } return value; } AbstractCellProcessor();  AbstractCellProcessor(boolean processHeader, boolean processData); }
AbstractCellProcessor implements CellProcessor { public static String processCell( String value, boolean isHeader, List<CellProcessor> cellProcessors) { if (cellProcessors != null) { for (CellProcessor cellProcessor : cellProcessors) { boolean process = (isHeader && cellProcessor.processHeader()) || (!isHeader && cellProcessor.processData()); if (process) value = cellProcessor.process(value); } } return value; } AbstractCellProcessor();  AbstractCellProcessor(boolean processHeader, boolean processData); @Override boolean processHeader(); @Override boolean processData(); static String processCell(
      String value, boolean isHeader, List<CellProcessor> cellProcessors); @Override boolean equals(Object o); @Override int hashCode(); }
AbstractCellProcessor implements CellProcessor { public static String processCell( String value, boolean isHeader, List<CellProcessor> cellProcessors) { if (cellProcessors != null) { for (CellProcessor cellProcessor : cellProcessors) { boolean process = (isHeader && cellProcessor.processHeader()) || (!isHeader && cellProcessor.processData()); if (process) value = cellProcessor.process(value); } } return value; } AbstractCellProcessor();  AbstractCellProcessor(boolean processHeader, boolean processData); @Override boolean processHeader(); @Override boolean processData(); static String processCell(
      String value, boolean isHeader, List<CellProcessor> cellProcessors); @Override boolean equals(Object o); @Override int hashCode();  }