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

dagger.internal.codegen.validation.AutoValue_ExternalBindingGraphConverter_BindingNodeImpl Maven / Gradle / Ivy

There is a newer version: 2.54
Show newest version


package dagger.internal.codegen.validation;

import com.google.common.collect.ImmutableSet;
import dagger.model.BindingKind;
import dagger.model.ComponentPath;
import dagger.model.DependencyRequest;
import dagger.model.Key;
import dagger.model.Scope;
import java.util.Optional;
import javax.annotation.Generated;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_ExternalBindingGraphConverter_BindingNodeImpl extends ExternalBindingGraphConverter.BindingNodeImpl {

  private final Key key;
  private final ComponentPath componentPath;
  private final ImmutableSet dependencies;
  private final Optional bindingElement;
  private final Optional contributingModule;
  private final boolean requiresModuleInstance;
  private final Optional scope;
  private final boolean isNullable;
  private final boolean isProduction;
  private final BindingKind kind;
  private final dagger.spi.model.Binding spiDelegate;

  AutoValue_ExternalBindingGraphConverter_BindingNodeImpl(
      Key key,
      ComponentPath componentPath,
      ImmutableSet dependencies,
      Optional bindingElement,
      Optional contributingModule,
      boolean requiresModuleInstance,
      Optional scope,
      boolean isNullable,
      boolean isProduction,
      BindingKind kind,
      dagger.spi.model.Binding spiDelegate) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (componentPath == null) {
      throw new NullPointerException("Null componentPath");
    }
    this.componentPath = componentPath;
    if (dependencies == null) {
      throw new NullPointerException("Null dependencies");
    }
    this.dependencies = dependencies;
    if (bindingElement == null) {
      throw new NullPointerException("Null bindingElement");
    }
    this.bindingElement = bindingElement;
    if (contributingModule == null) {
      throw new NullPointerException("Null contributingModule");
    }
    this.contributingModule = contributingModule;
    this.requiresModuleInstance = requiresModuleInstance;
    if (scope == null) {
      throw new NullPointerException("Null scope");
    }
    this.scope = scope;
    this.isNullable = isNullable;
    this.isProduction = isProduction;
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
    if (spiDelegate == null) {
      throw new NullPointerException("Null spiDelegate");
    }
    this.spiDelegate = spiDelegate;
  }

  @Override
  public Key key() {
    return key;
  }

  @Override
  public ComponentPath componentPath() {
    return componentPath;
  }

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

  @Override
  public Optional bindingElement() {
    return bindingElement;
  }

  @Override
  public Optional contributingModule() {
    return contributingModule;
  }

  @Override
  public boolean requiresModuleInstance() {
    return requiresModuleInstance;
  }

  @Override
  public Optional scope() {
    return scope;
  }

  @Override
  public boolean isNullable() {
    return isNullable;
  }

  @Override
  public boolean isProduction() {
    return isProduction;
  }

  @Override
  public BindingKind kind() {
    return kind;
  }

  @Override
  dagger.spi.model.Binding spiDelegate() {
    return spiDelegate;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExternalBindingGraphConverter.BindingNodeImpl) {
      ExternalBindingGraphConverter.BindingNodeImpl that = (ExternalBindingGraphConverter.BindingNodeImpl) o;
      return (this.key.equals(that.key()))
           && (this.componentPath.equals(that.componentPath()))
           && (this.dependencies.equals(that.dependencies()))
           && (this.bindingElement.equals(that.bindingElement()))
           && (this.contributingModule.equals(that.contributingModule()))
           && (this.requiresModuleInstance == that.requiresModuleInstance())
           && (this.scope.equals(that.scope()))
           && (this.isNullable == that.isNullable())
           && (this.isProduction == that.isProduction())
           && (this.kind.equals(that.kind()))
           && (this.spiDelegate.equals(that.spiDelegate()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= key.hashCode();
    h$ *= 1000003;
    h$ ^= componentPath.hashCode();
    h$ *= 1000003;
    h$ ^= dependencies.hashCode();
    h$ *= 1000003;
    h$ ^= bindingElement.hashCode();
    h$ *= 1000003;
    h$ ^= contributingModule.hashCode();
    h$ *= 1000003;
    h$ ^= requiresModuleInstance ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= scope.hashCode();
    h$ *= 1000003;
    h$ ^= isNullable ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= isProduction ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= kind.hashCode();
    h$ *= 1000003;
    h$ ^= spiDelegate.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy