Checks if the current object is equal to the specified object.
true if the objects are equal, false otherwise.
The other object to compare.