hashCode
Returns a hash code value for this serializer.
Calling from Kotlin
Here's an example of calling this method from Kotlin code:
val serializer = EmailAddressAsStringSerializer()
val other = EmailAddressAsStringSerializer()
val equality: Boolean = serializer.hashCode() == other.hashCode()
val message = "Hash codes of '$serializer' should be equal."
assertTrue(equality, message)
Content copied to clipboard