@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof TraceData) { TraceData that = (TraceData) o; return ((this.spanId == null) ? (that.getSpanId() == null) : this.spanId.equals(that.getSpanId())) && ((this.sample == null) ? (that.getSample() == null) : this.sample.equals(that.getSample())); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ServerSpan) { ServerSpan that = (ServerSpan) o; return ((this.spanId == null) ? (that.spanId() == null) : this.spanId.equals(that.spanId())) && ((this.getSpan == null) ? (that.getSpan() == null) : this.getSpan.equals(that.getSpan())) && ((this.getSample == null) ? (that.getSample() == null) : this.getSample.equals(that.getSample())); } return false; }