INNER CODE UNIT · Java
equals
scalecube/scalecube-services · services-api/src/main/java/io/scalecube/services/Address.java:119
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null || getClass() != other.getClass()) {
return false;
}
Address that = (Address) other;
return Objects.equals(host, that.host) && Objects.equals(port, that.port);
}
@Override
public int hashCode() {
return Objects.hash(host, port);
}
@Override
public String toString() {