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

dagger.internal.codegen.bindinggraphvalidation.AutoValue_DuplicateBindingsValidator_BindingWithoutComponent Maven / Gradle / Ivy

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

import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XTypeElement;
import dagger.internal.codegen.model.BindingKind;
import dagger.internal.codegen.model.Key;
import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DuplicateBindingsValidator_BindingWithoutComponent extends DuplicateBindingsValidator.BindingWithoutComponent {

  private final BindingKind bindingKind;

  private final Key bindingKey;

  private final Optional bindingElement;

  private final Optional contributingModule;

  AutoValue_DuplicateBindingsValidator_BindingWithoutComponent(
      BindingKind bindingKind,
      Key bindingKey,
      Optional bindingElement,
      Optional contributingModule) {
    if (bindingKind == null) {
      throw new NullPointerException("Null bindingKind");
    }
    this.bindingKind = bindingKind;
    if (bindingKey == null) {
      throw new NullPointerException("Null bindingKey");
    }
    this.bindingKey = bindingKey;
    if (bindingElement == null) {
      throw new NullPointerException("Null bindingElement");
    }
    this.bindingElement = bindingElement;
    if (contributingModule == null) {
      throw new NullPointerException("Null contributingModule");
    }
    this.contributingModule = contributingModule;
  }

  @Override
  BindingKind bindingKind() {
    return bindingKind;
  }

  @Override
  Key bindingKey() {
    return bindingKey;
  }

  @Override
  Optional bindingElement() {
    return bindingElement;
  }

  @Override
  Optional contributingModule() {
    return contributingModule;
  }

  @Override
  public String toString() {
    return "BindingWithoutComponent{"
        + "bindingKind=" + bindingKind + ", "
        + "bindingKey=" + bindingKey + ", "
        + "bindingElement=" + bindingElement + ", "
        + "contributingModule=" + contributingModule
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DuplicateBindingsValidator.BindingWithoutComponent) {
      DuplicateBindingsValidator.BindingWithoutComponent that = (DuplicateBindingsValidator.BindingWithoutComponent) o;
      return this.bindingKind.equals(that.bindingKind())
          && this.bindingKey.equals(that.bindingKey())
          && this.bindingElement.equals(that.bindingElement())
          && this.contributingModule.equals(that.contributingModule());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= bindingKind.hashCode();
    h$ *= 1000003;
    h$ ^= bindingKey.hashCode();
    h$ *= 1000003;
    h$ ^= bindingElement.hashCode();
    h$ *= 1000003;
    h$ ^= contributingModule.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy