blob: 6c4158a53786eff13aa8f419433f282766a03a6b [file] [log] [blame]
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));
}
}