equals

open operator override fun equals(other: Any?): Boolean(source)

Checks if this Body object is equal to the specified other object.

Two Body objects are considered equal if their goalCode, goal, and accept properties are equal.

Return

true if this Body object is equal to the specified other object, false otherwise.

Parameters

other

The object to compare for equality. If the other object is not of type Body, the method returns false.