mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
14 lines
294 B
Java
14 lines
294 B
Java
class Test {
|
|
double d;
|
|
|
|
public boolean equals(Object o) {
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
return Double.compare(d, test.d) == 0;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Double.hashCode(d);
|
|
}
|
|
} |