public static Theme getTheme(long uid) { for (Theme selectedTheme : themeList) { if (selectedTheme.getUid() == uid) { return selectedTheme; } } return null; }
public static boolean removeTheme(Long uid) { for (Theme accessTheme : themeList) { if (accessTheme.getUid().equals(uid)) { themeList.remove(accessTheme); return true; } } return false; }