All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dagger.model.AutoValue_BindingGraph_BindingNode Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version

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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy