Ejemplo n.º 1
0
 public Object calculate(SeasonalAthlete seasonalAthlete) {
   switch (this.sorter) {
     case name:
       return calculateAthleteName(seasonalAthlete);
     case school:
       return calculateSchoolName(seasonalAthlete);
     case ga:
       return calculateGamesPlayed(seasonalAthlete);
     default:
       return calculateStat(sorter.getPropertyName(), seasonalAthlete, sorter.aggregator);
   }
 }
Ejemplo n.º 2
0
 public Object calculateStats(SeasonalAthlete seasonalAthlete) {
   return calculateStat(sorter.getPropertyName(), seasonalAthlete, sorter.aggregator);
 }