mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 05:18:06 +07:00
GitOrigin-RevId: 21a0555c2fe6be705fe4d510c8d8d08238af4585
18 lines
355 B
Java
18 lines
355 B
Java
import java.util.Objects;
|
|
|
|
class Test {
|
|
int i;
|
|
Test a;
|
|
Test b;
|
|
|
|
public boolean equals(Object o) {
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
return i == test.i && a.equals(test.a) && Objects.equals(b, test.b);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return 0;
|
|
}
|
|
} |