Beispiel #1
0
 private String[] formatRow(R report, int rowIdx, ReportOutputFormat format) {
   String[] tableRow = new String[report.getColumnCount()];
   for (int colIdx = 0; colIdx < report.getColumnCount(); colIdx++) {
     tableRow[colIdx] = formatData(report, rowIdx, colIdx, format);
   }
   return tableRow;
 }
 // formats a single row
 private ImmutableList<String> formatRow(R report, int rowIdx, ReportOutputFormat format) {
   ImmutableList.Builder<String> tableRow = ImmutableList.builder();
   for (int colIdx = 0; colIdx < report.getColumnCount(); colIdx++) {
     tableRow.add(formatData(report, rowIdx, colIdx, format));
   }
   return tableRow.build();
 }