public boolean equals (Object obj)

Overriding: java.awt.geom.Rectangle2D

Checks whether two rectangles are equal.

The result is true if and only if the argument is not null and is a Rectangle object that has the same upper-left corner, width, and height as this Rectangle.

Parameters:
obj    the Object to compare with this Rectangle

Returns:  true if the objects are equal; false otherwise.