示例#1
0
 public boolean removePatient(Patient p) {
   if (this.contains(p)) {
     this.remove(p);
     p.clearWard();
     return true;
   }
   return false;
 }
示例#2
0
 public boolean addPatient(Patient p) {
   if (this.size() < 10 && !this.contains(p)) {
     this.add((Object) p);
     p.setWard(this);
     return true;
   }
   return false;
 }