dagger.hilt.processor.internal.root.AutoValue_Root Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hilt-android-compiler Show documentation
Show all versions of hilt-android-compiler Show documentation
A fast dependency injector for Android and Java.
package dagger.hilt.processor.internal.root;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Root extends Root {
private final TypeElement element;
private final TypeElement originatingRootElement;
private final boolean isTestRoot;
AutoValue_Root(
TypeElement element,
TypeElement originatingRootElement,
boolean isTestRoot) {
if (element == null) {
throw new NullPointerException("Null element");
}
this.element = element;
if (originatingRootElement == null) {
throw new NullPointerException("Null originatingRootElement");
}
this.originatingRootElement = originatingRootElement;
this.isTestRoot = isTestRoot;
}
@Override
TypeElement element() {
return element;
}
@Override
TypeElement originatingRootElement() {
return originatingRootElement;
}
@Override
boolean isTestRoot() {
return isTestRoot;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Root) {
Root that = (Root) o;
return (this.element.equals(that.element()))
&& (this.originatingRootElement.equals(that.originatingRootElement()))
&& (this.isTestRoot == that.isTestRoot());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= element.hashCode();
h$ *= 1000003;
h$ ^= originatingRootElement.hashCode();
h$ *= 1000003;
h$ ^= isTestRoot ? 1231 : 1237;
return h$;
}
}