return (colIndex < cells.size()) ? cells.get(colIndex) : "";
}
public void row(List<CellResult> cellResults) {
StringBuilder buffer = new StringBuilder();
Row row = rows.get(rowIndex);
if (rowsAbove) {
buffer.append(formats.up(rowHeight));
} else {
rowsAbove = true;
}
rowHeight = 1;
for (Comment comment : row.getComments()) {
buffer.append(" ");
buffer.append(comment.getValue());
buffer.append("\n");
rowHeight++;
}
switch (row.getDiffType()) {
case NONE:
buffer.append(" | ");
break;
case DELETE:
buffer.append(" ").append(formats.get("skipped").text("-")).append(" | ");
break;
case INSERT:
buffer.append(" ").append(formats.get("comment").text("+")).append(" | ");
break;
}
for (int colIndex = 0; colIndex < maxLengths.length; colIndex++) {
String cellText = escapeCell(getCellSafely(row.getCells(), colIndex));
String status = null;
switch (row.getDiffType()) {
case NONE:
status = cellResults.size() < colIndex ? cellResults.get(colIndex).getStatus() : "skipped";
break;
case DELETE:
status = "skipped";