예제 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Reservatie other = (Reservatie) obj;
   if (klant == null) {
     if (other.klant != null) return false;
   } else if (!klant.equals(other.klant)) return false;
   if (voorstelling == null) {
     if (other.voorstelling != null) return false;
   } else if (!voorstelling.equals(other.voorstelling)) return false;
   return true;
 }