com.github.kristofa.brave.AutoValue_ServerSpan Maven / Gradle / Ivy
package com.github.kristofa.brave;
import com.github.kristofa.brave.internal.Nullable;
import com.twitter.zipkin.gen.Span;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ServerSpan extends ServerSpan {
private final SpanId spanId;
private final Span getSpan;
private final Boolean getSample;
AutoValue_ServerSpan(
@Nullable SpanId spanId,
@Nullable Span getSpan,
@Nullable Boolean getSample) {
this.spanId = spanId;
this.getSpan = getSpan;
this.getSample = getSample;
}
@Nullable
@Override
SpanId spanId() {
return spanId;
}
@Nullable
@Override
public Span getSpan() {
return getSpan;
}
@Nullable
@Override
public Boolean getSample() {
return getSample;
}
@Override
public String toString() {
return "ServerSpan{"
+ "spanId=" + spanId + ", "
+ "getSpan=" + getSpan + ", "
+ "getSample=" + getSample
+ "}";
}
@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;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (spanId == null) ? 0 : this.spanId.hashCode();
h *= 1000003;
h ^= (getSpan == null) ? 0 : this.getSpan.hashCode();
h *= 1000003;
h ^= (getSample == null) ? 0 : this.getSample.hashCode();
return h;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy