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