예제 #1
0
    public String getShortParam() {
      Sorter sorter = this.getSorter();

      if (null != sorter) {
        if (sorter.name().contains("_")) {
          int _index = sorter.name().indexOf("_");
          return sorter.name().substring(_index + 1);
        } else {
          return sorter.name();
        }
      }

      return null;
    }
예제 #2
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);
   }
 }
예제 #3
0
 public Object calculateStats(SeasonalAthlete seasonalAthlete) {
   return calculateStat(sorter.getPropertyName(), seasonalAthlete, sorter.aggregator);
 }