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