Example #1
0
 @Override
 public String toString() {
   String rtn = "~* Name: " + name + ", Place: " + place + " *~";
   for (int i = 0; i < meals.length; i++) {
     rtn += "\n" + DayOfWeek.values()[i];
     for (Meal m : meals[i]) rtn += "\n" + m.toString();
   }
   return rtn;
 }
Example #2
0
 public boolean removeMeal(final Meal m, final DayOfWeek d) {
   return meals[d.ordinal()].remove(m);
 }
Example #3
0
 public boolean addMeal(final Meal m, final DayOfWeek d) {
   return meals[d.ordinal()].add(m);
 }