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

dagger.internal.codegen.model.AutoValue_Key_MultibindingContributionIdentifier Maven / Gradle / Ivy

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

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_Key_MultibindingContributionIdentifier extends Key.MultibindingContributionIdentifier {

  private final DaggerTypeElement contributingModule;

  private final DaggerExecutableElement bindingMethod;

  AutoValue_Key_MultibindingContributionIdentifier(
      DaggerTypeElement contributingModule,
      DaggerExecutableElement bindingMethod) {
    if (contributingModule == null) {
      throw new NullPointerException("Null contributingModule");
    }
    this.contributingModule = contributingModule;
    if (bindingMethod == null) {
      throw new NullPointerException("Null bindingMethod");
    }
    this.bindingMethod = bindingMethod;
  }

  @Override
  public DaggerTypeElement contributingModule() {
    return contributingModule;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Key.MultibindingContributionIdentifier) {
      Key.MultibindingContributionIdentifier that = (Key.MultibindingContributionIdentifier) o;
      return this.contributingModule.equals(that.contributingModule())
          && this.bindingMethod.equals(that.bindingMethod());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy