dagger.internal.codegen.validation.AutoValue_SpiModelBindingGraphConverter_ChildFactoryMethodEdgeImpl 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.
The newest version!
package dagger.internal.codegen.validation;
import dagger.internal.codegen.model.BindingGraph;
import dagger.spi.model.DaggerExecutableElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_ChildFactoryMethodEdgeImpl extends SpiModelBindingGraphConverter.ChildFactoryMethodEdgeImpl {
private final DaggerExecutableElement factoryMethod;
private final BindingGraph.ChildFactoryMethodEdge internalDelegate;
AutoValue_SpiModelBindingGraphConverter_ChildFactoryMethodEdgeImpl(
DaggerExecutableElement factoryMethod,
BindingGraph.ChildFactoryMethodEdge internalDelegate) {
if (factoryMethod == null) {
throw new NullPointerException("Null factoryMethod");
}
this.factoryMethod = factoryMethod;
if (internalDelegate == null) {
throw new NullPointerException("Null internalDelegate");
}
this.internalDelegate = internalDelegate;
}
@Override
public DaggerExecutableElement factoryMethod() {
return factoryMethod;
}
@Override
BindingGraph.ChildFactoryMethodEdge internalDelegate() {
return internalDelegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SpiModelBindingGraphConverter.ChildFactoryMethodEdgeImpl) {
SpiModelBindingGraphConverter.ChildFactoryMethodEdgeImpl that = (SpiModelBindingGraphConverter.ChildFactoryMethodEdgeImpl) o;
return this.factoryMethod.equals(that.factoryMethod())
&& this.internalDelegate.equals(that.internalDelegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= factoryMethod.hashCode();
h$ *= 1000003;
h$ ^= internalDelegate.hashCode();
return h$;
}
}