mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
18 lines
415 B
Plaintext
Vendored
18 lines
415 B
Plaintext
Vendored
import java.util.Arrays
|
|
|
|
class EqKotlin(val a: Array<Array<String>>) {
|
|
<caret>override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
|
|
other as EqKotlin
|
|
|
|
if (!Arrays.deepEquals(a, other.a)) return false
|
|
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return Arrays.deepHashCode(a)
|
|
}
|
|
} |