Dalinar
01/29/2019, 2:12 PMrobin
01/29/2019, 2:38 PMdata class Person(val string: String, val int: Int, val any: Any)
has a generated hashcode function that boils down to something like this this:
override fun hashCode(): Int {
return ((string?.hashCode() ?: 0) * 31 + int * 31) + (any?.hashCode() ?: 0)
}