Retrieves a boolean value that indicates whether the specified object is equivalent to this one.
public boolean equals( Object obj )
obj
An object to compare to this one.
Returns true if the specified object is equivalent to this one; otherwise, returns false.
If the object specified in the obj parameter is not a Point object, this method returns false.