mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
388 B
Java
17 lines
388 B
Java
import java.util.Objects;
|
|
|
|
class Test {
|
|
@org.jetbrains.annotations.NotNull Object 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 Objects.equals(d, test.d);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hashCode(d);
|
|
}
|
|
} |