mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
15 lines
330 B
Java
15 lines
330 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;
|
|
return Double.compare(d, test.d) == 0;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Double.hashCode(d);
|
|
}
|
|
} |