mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-16 00:20:29 +00:00
23 lines
875 B
Java
23 lines
875 B
Java
@lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) class EqualsAndHashCodeExplicitInclude {
|
|
int x;
|
|
EqualsAndHashCodeExplicitInclude() {
|
|
super();
|
|
}
|
|
public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
|
|
if ((o == this))
|
|
return true;
|
|
if ((! (o instanceof EqualsAndHashCodeExplicitInclude)))
|
|
return false;
|
|
final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o;
|
|
if ((! other.canEqual((java.lang.Object) this)))
|
|
return false;
|
|
return true;
|
|
}
|
|
protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
|
|
return (other instanceof EqualsAndHashCodeExplicitInclude);
|
|
}
|
|
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
|
|
final int result = 1;
|
|
return result;
|
|
}
|
|
} |