mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(minor) Tidy up EdgeDomain class a bit, no functional difference
This commit is contained in:
parent
6ff7e9648f
commit
5411950b87
@ -162,22 +162,16 @@ public class EdgeDomain implements Serializable {
|
|||||||
|
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) return true;
|
if (o == this) return true;
|
||||||
if (!(o instanceof EdgeDomain)) return false;
|
if (!(o instanceof EdgeDomain other)) return false;
|
||||||
final EdgeDomain other = (EdgeDomain) o;
|
|
||||||
if (!other.canEqual((Object) this)) return false;
|
|
||||||
final String this$subDomain = this.getSubDomain();
|
final String this$subDomain = this.getSubDomain();
|
||||||
final String other$subDomain = other.getSubDomain();
|
final String other$subDomain = other.getSubDomain();
|
||||||
if (!this$subDomain.equalsIgnoreCase(other$subDomain)) return false;
|
if (!Objects.equals(this$subDomain,other$subDomain)) return false;
|
||||||
final String this$domain = this.getDomain();
|
final String this$domain = this.getDomain();
|
||||||
final String other$domain = other.getDomain();
|
final String other$domain = other.getDomain();
|
||||||
if (!this$domain.equalsIgnoreCase(other$domain)) return false;
|
if (!Objects.equals(this$domain,other$domain)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean canEqual(final Object other) {
|
|
||||||
return other instanceof EdgeDomain;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int PRIME = 59;
|
final int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user