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

dagger.internal.codegen.bindinggraphvalidation.AutoValue_DuplicateBindingsValidator_BindingElement 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 java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DuplicateBindingsValidator_BindingElement extends DuplicateBindingsValidator.BindingElement {

  private final BindingKind bindingKind;

  private final Optional bindingElement;

  private final Optional contributingModule;

  AutoValue_DuplicateBindingsValidator_BindingElement(
      BindingKind bindingKind,
      Optional bindingElement,
      Optional contributingModule) {
    if (bindingKind == null) {
      throw new NullPointerException("Null bindingKind");
    }
    this.bindingKind = bindingKind;
    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
  Optional bindingElement() {
    return bindingElement;
  }

  @Override
  Optional contributingModule() {
    return contributingModule;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DuplicateBindingsValidator.BindingElement) {
      DuplicateBindingsValidator.BindingElement that = (DuplicateBindingsValidator.BindingElement) o;
      return this.bindingKind.equals(that.bindingKind())
          && 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$ ^= bindingElement.hashCode();
    h$ *= 1000003;
    h$ ^= contributingModule.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy