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; }
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(); } }