mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-28 19:50:53 +07:00
21 lines
300 B
Java
21 lines
300 B
Java
public class Bar {
|
|
int foo;
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (!(o instanceof Bar)) return false;
|
|
|
|
Bar bar = (Bar) o;
|
|
|
|
if (foo != bar.foo) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return foo;
|
|
}
|
|
}
|