@SuppressWarnings("unchecked")
private void loadTable(Averages averages) {
Iterator<AverageByDecadeFemale> itAVGF = averages.getFemaleAverages().iterator();
while (itAVGF.hasNext()) {
AverageByDecadeFemale f = itAVGF.next();
// add AOD
Vector rowData = new Vector();
rowData.add(ParametersKind.AOD);
rowData.add(f.getDecade());
rowData.add("F");
rowData.add(f.getSamples());
rowData.add(this.format.format((f.getAverageAOD() != null) ? f.getAverageAOD().getAvg() : 0));
rowData.add(this.format.format((f.getAverageAOD() != null) ? f.getAverageAOD().getTrustInterval() : 0));
this.addRow(rowData);
// add AOS
rowData = new Vector();
rowData.add(ParametersKind.AOS);
rowData.add(f.getDecade());
rowData.add("F");
rowData.add(f.getSamples());
rowData.add(this.format.format((f.getAverageAOS() != null) ? f.getAverageAOS().getAvg() : 0));
rowData.add(this.format.format((f.getAverageAOS() != null) ? f.getAverageAOS().getTrustInterval() : 0));
this.addRow(rowData);
// add IAR
rowData = new Vector();
rowData.add(ParametersKind.IAR);
rowData.add(f.getDecade());
rowData.add("F");
rowData.add(f.getSamples());
rowData.add(this.format.format((f.getAverageIAR() != null) ? f.getAverageIAR().getAvg() : 0));
rowData.add(this.format.format((f.getAverageIAR() != null) ? f.getAverageIAR().getTrustInterval() : 0));
this.addRow(rowData);
}
Iterator<AverageByDecadeMale> itAVGM = averages.getMaleAverages().iterator();