in finagle-thrift/src/main/java/com/twitter/finagle/thrift/thrift/Span.java [579:658]
public boolean equals(Span that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_trace_id = true;
boolean that_present_trace_id = true;
if (this_present_trace_id || that_present_trace_id) {
if (!(this_present_trace_id && that_present_trace_id))
return false;
if (this.trace_id != that.trace_id)
return false;
}
boolean this_present_name = true && this.isSetName();
boolean that_present_name = true && that.isSetName();
if (this_present_name || that_present_name) {
if (!(this_present_name && that_present_name))
return false;
if (!this.name.equals(that.name))
return false;
}
boolean this_present_id = true;
boolean that_present_id = true;
if (this_present_id || that_present_id) {
if (!(this_present_id && that_present_id))
return false;
if (this.id != that.id)
return false;
}
boolean this_present_parent_id = true && this.isSetParent_id();
boolean that_present_parent_id = true && that.isSetParent_id();
if (this_present_parent_id || that_present_parent_id) {
if (!(this_present_parent_id && that_present_parent_id))
return false;
if (this.parent_id != that.parent_id)
return false;
}
boolean this_present_annotations = true && this.isSetAnnotations();
boolean that_present_annotations = true && that.isSetAnnotations();
if (this_present_annotations || that_present_annotations) {
if (!(this_present_annotations && that_present_annotations))
return false;
if (!this.annotations.equals(that.annotations))
return false;
}
boolean this_present_binary_annotations = true && this.isSetBinary_annotations();
boolean that_present_binary_annotations = true && that.isSetBinary_annotations();
if (this_present_binary_annotations || that_present_binary_annotations) {
if (!(this_present_binary_annotations && that_present_binary_annotations))
return false;
if (!this.binary_annotations.equals(that.binary_annotations))
return false;
}
boolean this_present_debug = true;
boolean that_present_debug = true;
if (this_present_debug || that_present_debug) {
if (!(this_present_debug && that_present_debug))
return false;
if (this.debug != that.debug)
return false;
}
boolean this_present_timestamp = true && this.isSetTimestamp();
boolean that_present_timestamp = true && that.isSetTimestamp();
if (this_present_timestamp || that_present_timestamp) {
if (!(this_present_timestamp && that_present_timestamp))
return false;
if (this.timestamp != that.timestamp)
return false;
}
return true;
}