Example #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Vuelo other = (Vuelo) obj;
   if (avion == null) {
     if (other.avion != null) return false;
   } else if (!avion.equals(other.avion)) return false;
   if (id != other.id) return false;
   if (pista == null) {
     if (other.pista != null) return false;
   } else if (!pista.equals(other.pista)) return false;
   if (terminal == null) {
     if (other.terminal != null) return false;
   } else if (!terminal.equals(other.terminal)) return false;
   return true;
 }