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

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

The newest version!
package dagger.internal.codegen.validation;

import dagger.internal.codegen.model.BindingGraph;
import dagger.spi.model.DaggerExecutableElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_ChildFactoryMethodEdgeImpl extends SpiModelBindingGraphConverter.ChildFactoryMethodEdgeImpl {

  private final DaggerExecutableElement factoryMethod;

  private final BindingGraph.ChildFactoryMethodEdge internalDelegate;

  AutoValue_SpiModelBindingGraphConverter_ChildFactoryMethodEdgeImpl(
      DaggerExecutableElement factoryMethod,
      BindingGraph.ChildFactoryMethodEdge internalDelegate) {
    if (factoryMethod == null) {
      throw new NullPointerException("Null factoryMethod");
    }
    this.factoryMethod = factoryMethod;
    if (internalDelegate == null) {
      throw new NullPointerException("Null internalDelegate");
    }
    this.internalDelegate = internalDelegate;
  }

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy