Exemple #1
0
 public List<SeasonalTeam> getSeasonalTeams() {
   List<SeasonalTeam> seasonalTeams = new ArrayList<SeasonalTeam>();
   for (SeasonalAthlete a : getAllSeasonalAthletes()) {
     if (!ObjectUtils.isBlank(a) && !ObjectUtils.isBlank(a.getTeam())) {
       seasonalTeams.add(a.getTeam());
     }
   }
   return seasonalTeams;
 }
Exemple #2
0
  public List<Integer> getYearsPlayed() {

    List<Integer> yearsPlayed = new ArrayList<Integer>();
    for (SeasonalAthlete sa : getAllSeasonalAthletes()) {
      if (!yearsPlayed.contains(sa.getYear())) {
        yearsPlayed.add(sa.getYear());
      }
    }
    Collections.sort(yearsPlayed);
    Collections.reverse(yearsPlayed);
    return yearsPlayed;
  }