I have data class ItemMainData(val title: String?, val fields: Array<Field>)
. What's the proper way to override hashCode()
?
I am aware of this answer (Equals method for data class in kotlin), but in that case the hash of the array is sufficient to be the hash of the data class. It's not so in my case