import java.util.Arrays data class A(val a: IntArray) { override fun equals(other: Any?): Boolean { if (this === other) return true if (other?.javaClass != javaClass) return false other as A if (!Arrays.equals(a, other.a)) return false return true } override fun hashCode(): Int { return Arrays.hashCode(a) } }