mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 06:39:33 +07:00
GitOrigin-RevId: 21a0555c2fe6be705fe4d510c8d8d08238af4585
18 lines
314 B
Java
18 lines
314 B
Java
import java.util.Objects;
|
|
|
|
class A {
|
|
int a;
|
|
|
|
@Override
|
|
public boolean equals(Object o) {<caret>
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
A a1 = (A) o;
|
|
return a == a1.a;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hashCode(a);
|
|
}
|
|
}
|