hashCode

open override fun hashCode(): Int(source)

Calculates the hash code for the hashCode() method of the Body class.

The hash code is calculated using the following formula:

  • The hash code of the goalCode field is calculated using its hashCode() method, or zero if it is null.

  • The hash code of the comment field is calculated using its hashCode() method, or zero if it is null.

  • The hash code of the replacementId field is calculated using its hashCode() method, or zero if it is null.

  • The final hash code is calculated by multiplying each field's hash code by 31 and summing them up.

Return

The calculated hash code value for the Body object.