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

dagger.internal.codegen.validation.AutoValue_SpiModelBindingGraphConverter_ComponentNodeImpl 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.internal.codegen.model.BindingGraph;
import dagger.spi.model.ComponentPath;
import dagger.spi.model.DependencyRequest;
import dagger.spi.model.Scope;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_ComponentNodeImpl extends SpiModelBindingGraphConverter.ComponentNodeImpl {

  private final ComponentPath componentPath;

  private final boolean isSubcomponent;

  private final boolean isRealComponent;

  private final ImmutableSet entryPoints;

  private final ImmutableSet scopes;

  private final BindingGraph.ComponentNode internalDelegate;

  AutoValue_SpiModelBindingGraphConverter_ComponentNodeImpl(
      ComponentPath componentPath,
      boolean isSubcomponent,
      boolean isRealComponent,
      ImmutableSet entryPoints,
      ImmutableSet scopes,
      BindingGraph.ComponentNode internalDelegate) {
    if (componentPath == null) {
      throw new NullPointerException("Null componentPath");
    }
    this.componentPath = componentPath;
    this.isSubcomponent = isSubcomponent;
    this.isRealComponent = isRealComponent;
    if (entryPoints == null) {
      throw new NullPointerException("Null entryPoints");
    }
    this.entryPoints = entryPoints;
    if (scopes == null) {
      throw new NullPointerException("Null scopes");
    }
    this.scopes = scopes;
    if (internalDelegate == null) {
      throw new NullPointerException("Null internalDelegate");
    }
    this.internalDelegate = internalDelegate;
  }

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

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

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

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

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

  @Override
  BindingGraph.ComponentNode internalDelegate() {
    return internalDelegate;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SpiModelBindingGraphConverter.ComponentNodeImpl) {
      SpiModelBindingGraphConverter.ComponentNodeImpl that = (SpiModelBindingGraphConverter.ComponentNodeImpl) o;
      return this.componentPath.equals(that.componentPath())
          && this.isSubcomponent == that.isSubcomponent()
          && this.isRealComponent == that.isRealComponent()
          && this.entryPoints.equals(that.entryPoints())
          && this.scopes.equals(that.scopes())
          && this.internalDelegate.equals(that.internalDelegate());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= componentPath.hashCode();
    h$ *= 1000003;
    h$ ^= isSubcomponent ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= isRealComponent ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= entryPoints.hashCode();
    h$ *= 1000003;
    h$ ^= scopes.hashCode();
    h$ *= 1000003;
    h$ ^= internalDelegate.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy