Beispiel #1
0
 public Season getSeason(int season) {
   for (Season s : mSeasons) if (s.getSeason() == season) return s;
   return new Season();
 }
Beispiel #2
0
 public boolean hasSeason(int season) {
   for (Season s : mSeasons) if (s.getSeason() == season) return true;
   return false;
 }