dagger.internal.codegen.binding.AutoValue_BindingNode 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.binding;
import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.ComponentPath;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_BindingNode extends BindingNode {
private final ComponentPath componentPath;
private final dagger.internal.codegen.binding.Binding delegate;
private final ImmutableSet multibindingDeclarations;
private final ImmutableSet optionalBindingDeclarations;
private final ImmutableSet subcomponentDeclarations;
AutoValue_BindingNode(
ComponentPath componentPath,
dagger.internal.codegen.binding.Binding delegate,
ImmutableSet multibindingDeclarations,
ImmutableSet optionalBindingDeclarations,
ImmutableSet subcomponentDeclarations) {
if (componentPath == null) {
throw new NullPointerException("Null componentPath");
}
this.componentPath = componentPath;
if (delegate == null) {
throw new NullPointerException("Null delegate");
}
this.delegate = delegate;
if (multibindingDeclarations == null) {
throw new NullPointerException("Null multibindingDeclarations");
}
this.multibindingDeclarations = multibindingDeclarations;
if (optionalBindingDeclarations == null) {
throw new NullPointerException("Null optionalBindingDeclarations");
}
this.optionalBindingDeclarations = optionalBindingDeclarations;
if (subcomponentDeclarations == null) {
throw new NullPointerException("Null subcomponentDeclarations");
}
this.subcomponentDeclarations = subcomponentDeclarations;
}
@Override
public ComponentPath componentPath() {
return componentPath;
}
@Override
public dagger.internal.codegen.binding.Binding delegate() {
return delegate;
}
@Override
public ImmutableSet multibindingDeclarations() {
return multibindingDeclarations;
}
@Override
public ImmutableSet optionalBindingDeclarations() {
return optionalBindingDeclarations;
}
@Override
public ImmutableSet subcomponentDeclarations() {
return subcomponentDeclarations;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BindingNode) {
BindingNode that = (BindingNode) o;
return this.componentPath.equals(that.componentPath())
&& this.delegate.equals(that.delegate())
&& this.multibindingDeclarations.equals(that.multibindingDeclarations())
&& this.optionalBindingDeclarations.equals(that.optionalBindingDeclarations())
&& this.subcomponentDeclarations.equals(that.subcomponentDeclarations());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= componentPath.hashCode();
h$ *= 1000003;
h$ ^= delegate.hashCode();
h$ *= 1000003;
h$ ^= multibindingDeclarations.hashCode();
h$ *= 1000003;
h$ ^= optionalBindingDeclarations.hashCode();
h$ *= 1000003;
h$ ^= subcomponentDeclarations.hashCode();
return h$;
}
}