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

dagger.spi.model.AutoValue_Key_MultibindingContributionIdentifier Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.spi.model;

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

  private final String contributingModule;

  private final String bindingMethod;

  AutoValue_Key_MultibindingContributionIdentifier(
      String contributingModule,
      String 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 String contributingModule() {
    return contributingModule;
  }

  @Override
  public String 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