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

dagger.internal.codegen.validation.AutoValue_ModelBindingGraphConverter_ChildFactoryMethodEdgeImpl 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 javax.lang.model.element.ExecutableElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_ChildFactoryMethodEdgeImpl extends ModelBindingGraphConverter.ChildFactoryMethodEdgeImpl {

  private final ExecutableElement factoryMethod;

  private final BindingGraph.ChildFactoryMethodEdge delegate;

  AutoValue_ModelBindingGraphConverter_ChildFactoryMethodEdgeImpl(
      ExecutableElement factoryMethod,
      BindingGraph.ChildFactoryMethodEdge delegate) {
    if (factoryMethod == null) {
      throw new NullPointerException("Null factoryMethod");
    }
    this.factoryMethod = factoryMethod;
    if (delegate == null) {
      throw new NullPointerException("Null delegate");
    }
    this.delegate = delegate;
  }

  @Override
  public ExecutableElement factoryMethod() {
    return factoryMethod;
  }

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

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

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= factoryMethod.hashCode();
    h$ *= 1000003;
    h$ ^= delegate.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy