49505152535455565758
/* draw the table */ Table table = getTable(); table.setHeader(itemNames); table.addRow(itemValues); return table.draw(); } protected abstract Table getTable(); }
4748495051525354555657
values[0] = getKBytes(compositeData.get("used")); values[1] = getKBytes(compositeData.get("committed")); values[2] = getKBytes(compositeData.get("max")); values[3] = getKBytes(compositeData.get("init")); table.addRow(values); return table.draw(); } protected Table getTable(){ return new TextTable(); }
8485868788899091929394
/* draw the table */ Table table = getTable(); table.setHeader(itemNames); table.addRows(rows); return table.draw(); } private int find(String[] array, String item){ for(int i=0; i<array.length; i++){ if(array[i].equals(item)){