for (TableRow row : table.getRows()) {
for (int col : indexToFormatter.keySet()) {
TableCell cell = row.getCell(col);
Value value = cell.getValue();
ValueFormatter formatter = indexToFormatter.get(col);
String formattedValue = formatter.format(value);
cell.setFormattedValue(formattedValue);
}
}
return table;
}