mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
14 lines
297 B
Java
14 lines
297 B
Java
class Test {
|
|
float d;
|
|
|
|
public boolean equals(Object o) {
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
return Float.compare(d, test.d) == 0;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Float.floatToIntBits(d);
|
|
}
|
|
} |