Ejemplo n.º 1
0
 public static synchronized boolean pgIsContain(String programId) {
   if (globalAllPgs.size() == 0) return false;
   for (ProgramBean t : globalAllPgs) {
     if (t.getId().equals(programId)) {
       return true;
     }
   }
   return false;
 }
Ejemplo n.º 2
0
 public static synchronized boolean pgRemove(String taskId) {
   if (globalAllPgs.size() == 0) return false;
   ;
   for (ProgramBean t : globalAllPgs) {
     if (t.getId().equals(taskId)) {
       globalAllPgs.remove(t);
       return true;
     }
   }
   return false;
 }