hashCode

open override fun hashCode(): Int(source)

Calculates the hash code for the IssueCredential object.

The hash code is calculated using the following formula:

  • The hash code of the id field is calculated using its hashCode() method.

  • The hash code of the body field is calculated using its hashCode() method.

  • The hash code of the attachments field is calculated using its contentHashCode() method.

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

  • The hash code of the from field is calculated using its hashCode() method.

  • The hash code of the to field is calculated using its hashCode() method.

  • The hash code of the type field is calculated using its hashCode() method.

  • 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 IssueCredential object.