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

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

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

import com.google.common.collect.ImmutableSet;
import dagger.spi.model.BindingKind;
import dagger.spi.model.ComponentPath;
import dagger.spi.model.DaggerElement;
import dagger.spi.model.DaggerTypeElement;
import dagger.spi.model.DependencyRequest;
import dagger.spi.model.Key;
import dagger.spi.model.Scope;
import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_BindingNodeImpl extends SpiModelBindingGraphConverter.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.internal.codegen.model.Binding internalDelegate;

  AutoValue_SpiModelBindingGraphConverter_BindingNodeImpl(
      Key key,
      ComponentPath componentPath,
      ImmutableSet dependencies,
      Optional bindingElement,
      Optional contributingModule,
      boolean requiresModuleInstance,
      Optional scope,
      boolean isNullable,
      boolean isProduction,
      BindingKind kind,
      dagger.internal.codegen.model.Binding internalDelegate) {
    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 (internalDelegate == null) {
      throw new NullPointerException("Null internalDelegate");
    }
    this.internalDelegate = internalDelegate;
  }

  @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.internal.codegen.model.Binding internalDelegate() {
    return internalDelegate;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SpiModelBindingGraphConverter.BindingNodeImpl) {
      SpiModelBindingGraphConverter.BindingNodeImpl that = (SpiModelBindingGraphConverter.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.internalDelegate.equals(that.internalDelegate());
    }
    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$ ^= internalDelegate.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy