Esempio n. 1
0
 public Boolean informeExiste(Informe informe) {
   Boolean btmp = false;
   for (int i = 0; i < this.informes.size(); i++) {
     if (this.informes.get(i).getIdInforme() == informe.getIdInforme()) {
       btmp = true;
     }
   }
   return btmp;
 }
Esempio n. 2
0
 public void quitarInforme(Informe informe) {
   Integer itmp = null;
   if (informeExiste(informe)) {
     for (int i = 0; i < this.informes.size(); i++) {
       if (this.informes.get(i).getIdInforme() == informe.getIdInforme()) {
         itmp = i;
       }
     }
   }
   if (itmp != null) {
     this.informes.remove(itmp);
   }
 }