mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
16 lines
352 B
Java
16 lines
352 B
Java
import java.util.Objects;
|
|
|
|
class Test {
|
|
@org.jetbrains.annotations.NotNull Object d;
|
|
|
|
public boolean equals(Object o) {
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Test test = (Test) o;
|
|
return Objects.equals(d, test.d);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hashCode(d);
|
|
}
|
|
} |