mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 15:45:49 +07:00
b3eb62d36e
(cherry picked from commit 8796e6596a3e3e142b072d405bbf37071b810c5c)
19 lines
428 B
Java
19 lines
428 B
Java
class Test {
|
|
double 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 (Double.compare(test.d, d) != 0) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public int hashCode() {
|
|
final long temp = Double.doubleToLongBits(d);
|
|
return (int) (temp ^ (temp >>> 32));
|
|
}
|
|
} |