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

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

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

import dagger.internal.codegen.model.BindingGraph;
import dagger.model.DependencyRequest;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_DependencyEdgeImpl extends ModelBindingGraphConverter.DependencyEdgeImpl {

  private final DependencyRequest dependencyRequest;

  private final boolean isEntryPoint;

  private final BindingGraph.DependencyEdge delegate;

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

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy