com.github.kristofa.brave.AutoValue_BraveCallable Maven / Gradle / Ivy
package com.github.kristofa.brave;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BraveCallable extends BraveCallable {
private final java.util.concurrent.Callable wrappedCallable;
private final ServerSpanThreadBinder serverSpanThreadBinder;
private final ServerSpan currentServerSpan;
AutoValue_BraveCallable(
java.util.concurrent.Callable wrappedCallable,
ServerSpanThreadBinder serverSpanThreadBinder,
@com.github.kristofa.brave.internal.Nullable ServerSpan currentServerSpan) {
if (wrappedCallable == null) {
throw new NullPointerException("Null wrappedCallable");
}
this.wrappedCallable = wrappedCallable;
if (serverSpanThreadBinder == null) {
throw new NullPointerException("Null serverSpanThreadBinder");
}
this.serverSpanThreadBinder = serverSpanThreadBinder;
this.currentServerSpan = currentServerSpan;
}
@Override
java.util.concurrent.Callable wrappedCallable() {
return wrappedCallable;
}
@Override
ServerSpanThreadBinder serverSpanThreadBinder() {
return serverSpanThreadBinder;
}
@com.github.kristofa.brave.internal.Nullable
@Override
ServerSpan currentServerSpan() {
return currentServerSpan;
}
@Override
public String toString() {
return "BraveCallable{"
+ "wrappedCallable=" + wrappedCallable + ", "
+ "serverSpanThreadBinder=" + serverSpanThreadBinder + ", "
+ "currentServerSpan=" + currentServerSpan
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BraveCallable) {
BraveCallable> that = (BraveCallable>) o;
return (this.wrappedCallable.equals(that.wrappedCallable()))
&& (this.serverSpanThreadBinder.equals(that.serverSpanThreadBinder()))
&& ((this.currentServerSpan == null) ? (that.currentServerSpan() == null) : this.currentServerSpan.equals(that.currentServerSpan()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= wrappedCallable.hashCode();
h *= 1000003;
h ^= serverSpanThreadBinder.hashCode();
h *= 1000003;
h ^= (currentServerSpan == null) ? 0 : currentServerSpan.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy