dagger.internal.codegen.validation.AutoValue_ModelBindingGraphConverter_BindingNodeImpl 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.model.BindingKind;
import dagger.model.ComponentPath;
import dagger.model.DependencyRequest;
import dagger.model.Key;
import dagger.model.Scope;
import java.util.Optional;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_BindingNodeImpl extends ModelBindingGraphConverter.BindingNodeImpl {
private final Key key;
private final ComponentPath componentPath;
private final ImmutableSet dependencies;
private final Optional bindingElement;
private final Optional contributingModule;
private final boolean requiresModuleInstance;
private final Optional scope;
private final boolean isNullable;
private final boolean isProduction;
private final BindingKind kind;
private final dagger.internal.codegen.model.Binding delegate;
AutoValue_ModelBindingGraphConverter_BindingNodeImpl(
Key key,
ComponentPath componentPath,
ImmutableSet dependencies,
Optional bindingElement,
Optional contributingModule,
boolean requiresModuleInstance,
Optional scope,
boolean isNullable,
boolean isProduction,
BindingKind kind,
dagger.internal.codegen.model.Binding delegate) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (componentPath == null) {
throw new NullPointerException("Null componentPath");
}
this.componentPath = componentPath;
if (dependencies == null) {
throw new NullPointerException("Null dependencies");
}
this.dependencies = dependencies;
if (bindingElement == null) {
throw new NullPointerException("Null bindingElement");
}
this.bindingElement = bindingElement;
if (contributingModule == null) {
throw new NullPointerException("Null contributingModule");
}
this.contributingModule = contributingModule;
this.requiresModuleInstance = requiresModuleInstance;
if (scope == null) {
throw new NullPointerException("Null scope");
}
this.scope = scope;
this.isNullable = isNullable;
this.isProduction = isProduction;
if (kind == null) {
throw new NullPointerException("Null kind");
}
this.kind = kind;
if (delegate == null) {
throw new NullPointerException("Null delegate");
}
this.delegate = delegate;
}
@Override
public Key key() {
return key;
}
@Override
public ComponentPath componentPath() {
return componentPath;
}
@Override
public ImmutableSet dependencies() {
return dependencies;
}
@Override
public Optional bindingElement() {
return bindingElement;
}
@Override
public Optional contributingModule() {
return contributingModule;
}
@Override
public boolean requiresModuleInstance() {
return requiresModuleInstance;
}
@Override
public Optional scope() {
return scope;
}
@Override
public boolean isNullable() {
return isNullable;
}
@Override
public boolean isProduction() {
return isProduction;
}
@Override
public BindingKind kind() {
return kind;
}
@Override
dagger.internal.codegen.model.Binding delegate() {
return delegate;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelBindingGraphConverter.BindingNodeImpl) {
ModelBindingGraphConverter.BindingNodeImpl that = (ModelBindingGraphConverter.BindingNodeImpl) o;
return this.key.equals(that.key())
&& this.componentPath.equals(that.componentPath())
&& this.dependencies.equals(that.dependencies())
&& this.bindingElement.equals(that.bindingElement())
&& this.contributingModule.equals(that.contributingModule())
&& this.requiresModuleInstance == that.requiresModuleInstance()
&& this.scope.equals(that.scope())
&& this.isNullable == that.isNullable()
&& this.isProduction == that.isProduction()
&& this.kind.equals(that.kind())
&& this.delegate.equals(that.delegate());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= componentPath.hashCode();
h$ *= 1000003;
h$ ^= dependencies.hashCode();
h$ *= 1000003;
h$ ^= bindingElement.hashCode();
h$ *= 1000003;
h$ ^= contributingModule.hashCode();
h$ *= 1000003;
h$ ^= requiresModuleInstance ? 1231 : 1237;
h$ *= 1000003;
h$ ^= scope.hashCode();
h$ *= 1000003;
h$ ^= isNullable ? 1231 : 1237;
h$ *= 1000003;
h$ ^= isProduction ? 1231 : 1237;
h$ *= 1000003;
h$ ^= kind.hashCode();
h$ *= 1000003;
h$ ^= delegate.hashCode();
return h$;
}
}