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
goalCode
fields have the same value.Their
comment
fields have the same value.Their
replacementId
fields have the same value.
Return
true
if the objects are equal, false
otherwise.
Parameters
other
The object to compare against the current Body
object.