dagger.internal.codegen.validation.AutoValue_SpiModelBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl 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 com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.BindingGraph;
import dagger.spi.model.DaggerTypeElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl extends SpiModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl {
private final ImmutableSet declaringModules;
private final BindingGraph.SubcomponentCreatorBindingEdge internalDelegate;
AutoValue_SpiModelBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl(
ImmutableSet declaringModules,
BindingGraph.SubcomponentCreatorBindingEdge internalDelegate) {
if (declaringModules == null) {
throw new NullPointerException("Null declaringModules");
}
this.declaringModules = declaringModules;
if (internalDelegate == null) {
throw new NullPointerException("Null internalDelegate");
}
this.internalDelegate = internalDelegate;
}
@Override
public ImmutableSet declaringModules() {
return declaringModules;
}
@Override
BindingGraph.SubcomponentCreatorBindingEdge internalDelegate() {
return internalDelegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SpiModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl) {
SpiModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl that = (SpiModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl) o;
return this.declaringModules.equals(that.declaringModules())
&& this.internalDelegate.equals(that.internalDelegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= declaringModules.hashCode();
h$ *= 1000003;
h$ ^= internalDelegate.hashCode();
return h$;
}
}