dagger.internal.codegen.validation.AutoValue_ModelBindingGraphConverter_ComponentNodeImpl 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.model.ComponentPath;
import dagger.model.DependencyRequest;
import dagger.model.Scope;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_ComponentNodeImpl extends ModelBindingGraphConverter.ComponentNodeImpl {
private final ComponentPath componentPath;
private final boolean isSubcomponent;
private final boolean isRealComponent;
private final ImmutableSet entryPoints;
private final ImmutableSet scopes;
private final BindingGraph.ComponentNode delegate;
AutoValue_ModelBindingGraphConverter_ComponentNodeImpl(
ComponentPath componentPath,
boolean isSubcomponent,
boolean isRealComponent,
ImmutableSet entryPoints,
ImmutableSet scopes,
BindingGraph.ComponentNode delegate) {
if (componentPath == null) {
throw new NullPointerException("Null componentPath");
}
this.componentPath = componentPath;
this.isSubcomponent = isSubcomponent;
this.isRealComponent = isRealComponent;
if (entryPoints == null) {
throw new NullPointerException("Null entryPoints");
}
this.entryPoints = entryPoints;
if (scopes == null) {
throw new NullPointerException("Null scopes");
}
this.scopes = scopes;
if (delegate == null) {
throw new NullPointerException("Null delegate");
}
this.delegate = delegate;
}
@Override
public ComponentPath componentPath() {
return componentPath;
}
@Override
public boolean isSubcomponent() {
return isSubcomponent;
}
@Override
public boolean isRealComponent() {
return isRealComponent;
}
@Override
public ImmutableSet entryPoints() {
return entryPoints;
}
@Override
public ImmutableSet scopes() {
return scopes;
}
@Override
BindingGraph.ComponentNode delegate() {
return delegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelBindingGraphConverter.ComponentNodeImpl) {
ModelBindingGraphConverter.ComponentNodeImpl that = (ModelBindingGraphConverter.ComponentNodeImpl) o;
return this.componentPath.equals(that.componentPath())
&& this.isSubcomponent == that.isSubcomponent()
&& this.isRealComponent == that.isRealComponent()
&& this.entryPoints.equals(that.entryPoints())
&& this.scopes.equals(that.scopes())
&& this.delegate.equals(that.delegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= componentPath.hashCode();
h$ *= 1000003;
h$ ^= isSubcomponent ? 1231 : 1237;
h$ *= 1000003;
h$ ^= isRealComponent ? 1231 : 1237;
h$ *= 1000003;
h$ ^= entryPoints.hashCode();
h$ *= 1000003;
h$ ^= scopes.hashCode();
h$ *= 1000003;
h$ ^= delegate.hashCode();
return h$;
}
}