in finagle-thrift/src/main/java/com/twitter/finagle/thrift/thrift/Endpoint.java [296:330]
public boolean equals(Endpoint that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_ipv4 = true;
boolean that_present_ipv4 = true;
if (this_present_ipv4 || that_present_ipv4) {
if (!(this_present_ipv4 && that_present_ipv4))
return false;
if (this.ipv4 != that.ipv4)
return false;
}
boolean this_present_port = true;
boolean that_present_port = true;
if (this_present_port || that_present_port) {
if (!(this_present_port && that_present_port))
return false;
if (this.port != that.port)
return false;
}
boolean this_present_service_name = true && this.isSetService_name();
boolean that_present_service_name = true && that.isSetService_name();
if (this_present_service_name || that_present_service_name) {
if (!(this_present_service_name && that_present_service_name))
return false;
if (!this.service_name.equals(that.service_name))
return false;
}
return true;
}