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