dagger.internal.codegen.validation.AutoValue_ModelBindingGraphConverter_DependencyEdgeImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
package dagger.internal.codegen.validation;
import dagger.internal.codegen.model.BindingGraph;
import dagger.model.DependencyRequest;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_DependencyEdgeImpl extends ModelBindingGraphConverter.DependencyEdgeImpl {
private final DependencyRequest dependencyRequest;
private final boolean isEntryPoint;
private final BindingGraph.DependencyEdge delegate;
AutoValue_ModelBindingGraphConverter_DependencyEdgeImpl(
DependencyRequest dependencyRequest,
boolean isEntryPoint,
BindingGraph.DependencyEdge delegate) {
if (dependencyRequest == null) {
throw new NullPointerException("Null dependencyRequest");
}
this.dependencyRequest = dependencyRequest;
this.isEntryPoint = isEntryPoint;
if (delegate == null) {
throw new NullPointerException("Null delegate");
}
this.delegate = delegate;
}
@Override
public DependencyRequest dependencyRequest() {
return dependencyRequest;
}
@Override
public boolean isEntryPoint() {
return isEntryPoint;
}
@Override
BindingGraph.DependencyEdge delegate() {
return delegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelBindingGraphConverter.DependencyEdgeImpl) {
ModelBindingGraphConverter.DependencyEdgeImpl that = (ModelBindingGraphConverter.DependencyEdgeImpl) o;
return this.dependencyRequest.equals(that.dependencyRequest())
&& this.isEntryPoint == that.isEntryPoint()
&& this.delegate.equals(that.delegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= dependencyRequest.hashCode();
h$ *= 1000003;
h$ ^= isEntryPoint ? 1231 : 1237;
h$ *= 1000003;
h$ ^= delegate.hashCode();
return h$;
}
}