dagger.model.AutoValue_BindingGraph_BindingNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-spi Show documentation
Show all versions of dagger-spi Show documentation
A fast dependency injector for Android and Java.
package dagger.model;
import com.google.common.collect.ImmutableSet;
import javax.annotation.Generated;
import javax.lang.model.element.Element;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BindingGraph_BindingNode extends BindingGraph.BindingNode {
private final ComponentPath componentPath;
private final Binding binding;
private final ImmutableSet associatedDeclarations;
AutoValue_BindingGraph_BindingNode(
ComponentPath componentPath,
Binding binding,
ImmutableSet associatedDeclarations) {
if (componentPath == null) {
throw new NullPointerException("Null componentPath");
}
this.componentPath = componentPath;
if (binding == null) {
throw new NullPointerException("Null binding");
}
this.binding = binding;
if (associatedDeclarations == null) {
throw new NullPointerException("Null associatedDeclarations");
}
this.associatedDeclarations = associatedDeclarations;
}
@Override
public ComponentPath componentPath() {
return componentPath;
}
@Override
public Binding binding() {
return binding;
}
@Override
public ImmutableSet associatedDeclarations() {
return associatedDeclarations;
}
@Override
public String toString() {
return "BindingNode{"
+ "componentPath=" + componentPath + ", "
+ "binding=" + binding + ", "
+ "associatedDeclarations=" + associatedDeclarations
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BindingGraph.BindingNode) {
BindingGraph.BindingNode that = (BindingGraph.BindingNode) o;
return (this.componentPath.equals(that.componentPath()))
&& (this.binding.equals(that.binding()))
&& (this.associatedDeclarations.equals(that.associatedDeclarations()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.componentPath.hashCode();
h *= 1000003;
h ^= this.binding.hashCode();
h *= 1000003;
h ^= this.associatedDeclarations.hashCode();
return h;
}
}