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

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

There is a newer version: 2.54
Show newest version


package dagger.internal.codegen.validation;

import dagger.model.DependencyRequest;
import dagger.spi.model.BindingGraph;
import javax.annotation.Generated;

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

  private final DependencyRequest dependencyRequest;
  private final boolean isEntryPoint;
  private final BindingGraph.DependencyEdge spiDelegate;

  AutoValue_ExternalBindingGraphConverter_DependencyEdgeImpl(
      DependencyRequest dependencyRequest,
      boolean isEntryPoint,
      BindingGraph.DependencyEdge spiDelegate) {
    if (dependencyRequest == null) {
      throw new NullPointerException("Null dependencyRequest");
    }
    this.dependencyRequest = dependencyRequest;
    this.isEntryPoint = isEntryPoint;
    if (spiDelegate == null) {
      throw new NullPointerException("Null spiDelegate");
    }
    this.spiDelegate = spiDelegate;
  }

  @Override
  public DependencyRequest dependencyRequest() {
    return dependencyRequest;
  }

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

  @Override
  BindingGraph.DependencyEdge spiDelegate() {
    return spiDelegate;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExternalBindingGraphConverter.DependencyEdgeImpl) {
      ExternalBindingGraphConverter.DependencyEdgeImpl that = (ExternalBindingGraphConverter.DependencyEdgeImpl) o;
      return (this.dependencyRequest.equals(that.dependencyRequest()))
           && (this.isEntryPoint == that.isEntryPoint())
           && (this.spiDelegate.equals(that.spiDelegate()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= dependencyRequest.hashCode();
    h$ *= 1000003;
    h$ ^= isEntryPoint ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= spiDelegate.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy