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

dagger.internal.codegen.binding.$AutoValue_MembersInjectionBinding_InjectionSite Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.internal.codegen.binding;

import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.DependencyRequest;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_MembersInjectionBinding_InjectionSite extends MembersInjectionBinding.InjectionSite {

  private final MembersInjectionBinding.InjectionSite.Kind kind;

  private final XElement element;

  private final XTypeElement enclosingTypeElement;

  private final ImmutableSet dependencies;

  $AutoValue_MembersInjectionBinding_InjectionSite(
      MembersInjectionBinding.InjectionSite.Kind kind,
      XElement element,
      XTypeElement enclosingTypeElement,
      ImmutableSet dependencies) {
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
    if (element == null) {
      throw new NullPointerException("Null element");
    }
    this.element = element;
    if (enclosingTypeElement == null) {
      throw new NullPointerException("Null enclosingTypeElement");
    }
    this.enclosingTypeElement = enclosingTypeElement;
    if (dependencies == null) {
      throw new NullPointerException("Null dependencies");
    }
    this.dependencies = dependencies;
  }

  @Override
  public MembersInjectionBinding.InjectionSite.Kind kind() {
    return kind;
  }

  @Override
  public XElement element() {
    return element;
  }

  @Override
  public XTypeElement enclosingTypeElement() {
    return enclosingTypeElement;
  }

  @Override
  public ImmutableSet dependencies() {
    return dependencies;
  }

  @Override
  public String toString() {
    return "InjectionSite{"
        + "kind=" + kind + ", "
        + "element=" + element + ", "
        + "enclosingTypeElement=" + enclosingTypeElement + ", "
        + "dependencies=" + dependencies
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MembersInjectionBinding.InjectionSite) {
      MembersInjectionBinding.InjectionSite that = (MembersInjectionBinding.InjectionSite) o;
      return this.kind.equals(that.kind())
          && this.element.equals(that.element())
          && this.enclosingTypeElement.equals(that.enclosingTypeElement())
          && this.dependencies.equals(that.dependencies());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= kind.hashCode();
    h$ *= 1000003;
    h$ ^= element.hashCode();
    h$ *= 1000003;
    h$ ^= enclosingTypeElement.hashCode();
    h$ *= 1000003;
    h$ ^= dependencies.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy