mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
18 lines
390 B
Java
18 lines
390 B
Java
class Test {
|
|
Object d;
|
|
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
|
|
if (d != null ? !d.equals(test.d) : test.d != null) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return d != null ? d.hashCode() : 0;
|
|
}
|
|
} |