예제 #1
0
 /**
  * Compares an Object to the current Garage object to determine equality
  *
  * @param o the Object to be compared against
  * @return true if equal, false otherwise
  */
 @Override
 public boolean equals(Object o) {
   if (!(o instanceof Garage)) return false;
   else {
     Garage test = (Garage) o;
     return cars.equals(test.getCars());
   }
 }