mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
15 lines
358 B
Java
15 lines
358 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() {
|
|
final long temp = Double.doubleToLongBits(d);
|
|
return (int) (temp ^ (temp >>> 32));
|
|
}
|
|
} |