equals
Checks if the object is equal to the current Body object.
Two Body objects are considered equal if they meet the following conditions:
They are the same instance (reference equality).
They belong to the same class.
Their
goalCodefields have the same value.Their
commentfields have the same value.Their
replacementIdfields have the same value.
Return
true if the objects are equal, false otherwise.
Parameters
other
The object to compare against the current Body object.