public void removeTask(Theme theme, Task task) { for (int i = 0; i < themes.size(); i++) { if (themes.get(i).getId() == theme.getId()) { themes.get(i).removeTask(task); } } }
public void editTheme(Theme theme) { for (int i = 0; i < themes.size(); i++) { if (themes.get(i).getId() == theme.getId()) { themes.set(i, theme); } } }