code: private boolean rectEquals(Rectangle rect1, Rectangle rect2) {
          return (rect1.getWidth() == rect2.getWidth()) && (rect1.getHeight() == rect2.getHeight());
      }
docs: This method compares to Rectangles. They are considered equal if width and height are the same
  
  @param rect1 The first Rectangle to compare
  @param rect2 The second Rectangle to compare
  @return <code>True</code> if the Rectangles equal, <code>false</code> otherwise