dagger.internal.codegen.model.AutoValue_Key_MultibindingContributionIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
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$;
}
}