dagger.internal.codegen.bindinggraphvalidation.AutoValue_DuplicateBindingsValidator_BindingElement 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.bindinggraphvalidation;
import dagger.spi.model.BindingKind;
import java.util.Optional;
import javax.annotation.Generated;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DuplicateBindingsValidator_BindingElement extends DuplicateBindingsValidator.BindingElement {
private final BindingKind bindingKind;
private final Optional bindingElement;
private final Optional contributingModule;
AutoValue_DuplicateBindingsValidator_BindingElement(
BindingKind bindingKind,
Optional bindingElement,
Optional contributingModule) {
if (bindingKind == null) {
throw new NullPointerException("Null bindingKind");
}
this.bindingKind = bindingKind;
if (bindingElement == null) {
throw new NullPointerException("Null bindingElement");
}
this.bindingElement = bindingElement;
if (contributingModule == null) {
throw new NullPointerException("Null contributingModule");
}
this.contributingModule = contributingModule;
}
@Override
BindingKind bindingKind() {
return bindingKind;
}
@Override
Optional bindingElement() {
return bindingElement;
}
@Override
Optional contributingModule() {
return contributingModule;
}
@Override
public String toString() {
return "BindingElement{"
+ "bindingKind=" + bindingKind + ", "
+ "bindingElement=" + bindingElement + ", "
+ "contributingModule=" + contributingModule
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DuplicateBindingsValidator.BindingElement) {
DuplicateBindingsValidator.BindingElement that = (DuplicateBindingsValidator.BindingElement) o;
return (this.bindingKind.equals(that.bindingKind()))
&& (this.bindingElement.equals(that.bindingElement()))
&& (this.contributingModule.equals(that.contributingModule()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= bindingKind.hashCode();
h$ *= 1000003;
h$ ^= bindingElement.hashCode();
h$ *= 1000003;
h$ ^= contributingModule.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy