Exemplo n.º 1
0
 private List<ScheduleEntry> getEmptyEntries(List<ScheduleEntry> entries, boolean b) {
   List<ScheduleEntry> prunedList = new ArrayList<>();
   for (ScheduleEntry entry : entries) {
     if (b == entry.getRecipes().isEmpty()) prunedList.add(entry);
   }
   return prunedList;
 }
Exemplo n.º 2
0
 private void removeFutureEntries(DateTime dateTime, List<ScheduleEntry> entries) {
   for (Iterator<ScheduleEntry> it = entries.iterator(); it.hasNext(); ) {
     ScheduleEntry current = it.next();
     if (current.getDate() - dateTime.getMillis() >= DateTimeConstants.MILLIS_PER_DAY * 20)
       it.remove();
   }
 }