mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
24 lines
647 B
Java
24 lines
647 B
Java
import java.util.Arrays;
|
|
|
|
class Test {
|
|
Object[] myOs;
|
|
int[][] myIIs;
|
|
int[] myIs;
|
|
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
return Arrays.equals(myOs, test.myOs) &&
|
|
Arrays.deepEquals(myIIs, test.myIIs) &&
|
|
Arrays.equals(myIs, test.myIs);
|
|
}
|
|
|
|
public int hashCode() {
|
|
int result = Arrays.hashCode(myOs);
|
|
result = 31 * result + Arrays.deepHashCode(myIIs);
|
|
result = 31 * result + Arrays.hashCode(myIs);
|
|
return result;
|
|
}
|
|
} |