dagger.internal.codegen.validation.AutoValue_SpiModelBindingGraphConverter_DependencyEdgeImpl Maven / Gradle / Ivy
package dagger.internal.codegen.validation;
import dagger.internal.codegen.model.BindingGraph;
import dagger.spi.model.DependencyRequest;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_DependencyEdgeImpl extends SpiModelBindingGraphConverter.DependencyEdgeImpl {
private final DependencyRequest dependencyRequest;
private final boolean isEntryPoint;
private final BindingGraph.DependencyEdge internalDelegate;
AutoValue_SpiModelBindingGraphConverter_DependencyEdgeImpl(
DependencyRequest dependencyRequest,
boolean isEntryPoint,
BindingGraph.DependencyEdge internalDelegate) {
if (dependencyRequest == null) {
throw new NullPointerException("Null dependencyRequest");
}
this.dependencyRequest = dependencyRequest;
this.isEntryPoint = isEntryPoint;
if (internalDelegate == null) {
throw new NullPointerException("Null internalDelegate");
}
this.internalDelegate = internalDelegate;
}
@Override
public DependencyRequest dependencyRequest() {
return dependencyRequest;
}
@Override
public boolean isEntryPoint() {
return isEntryPoint;
}
@Override
BindingGraph.DependencyEdge internalDelegate() {
return internalDelegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SpiModelBindingGraphConverter.DependencyEdgeImpl) {
SpiModelBindingGraphConverter.DependencyEdgeImpl that = (SpiModelBindingGraphConverter.DependencyEdgeImpl) o;
return this.dependencyRequest.equals(that.dependencyRequest())
&& this.isEntryPoint == that.isEntryPoint()
&& this.internalDelegate.equals(that.internalDelegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= dependencyRequest.hashCode();
h$ *= 1000003;
h$ ^= isEntryPoint ? 1231 : 1237;
h$ *= 1000003;
h$ ^= internalDelegate.hashCode();
return h$;
}
}