Retrieves a boolean value that indicates whether the specified object is identical to this rectangle.
public boolean equals( Object obj )
obj
The object to compare. This object must be a Rectangle object.
Returns true if the objects are equivalent; otherwise, returns false.
The specified object must be a Rectangle object instance.