dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentClassesMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hilt-compiler Show documentation
Show all versions of hilt-compiler Show documentation
A fast dependency injector for Android and Java.
The newest version!
package dagger.hilt.processor.internal.definecomponent;
import androidx.room.compiler.processing.XTypeElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentClassesMetadata extends DefineComponentClassesMetadata {
private final XTypeElement aggregatingElement;
private final XTypeElement element;
private final boolean isComponent;
AutoValue_DefineComponentClassesMetadata(
XTypeElement aggregatingElement,
XTypeElement element,
boolean isComponent) {
if (aggregatingElement == null) {
throw new NullPointerException("Null aggregatingElement");
}
this.aggregatingElement = aggregatingElement;
if (element == null) {
throw new NullPointerException("Null element");
}
this.element = element;
this.isComponent = isComponent;
}
@Override
public XTypeElement aggregatingElement() {
return aggregatingElement;
}
@Override
public XTypeElement element() {
return element;
}
@Override
boolean isComponent() {
return isComponent;
}
@Override
public String toString() {
return "DefineComponentClassesMetadata{"
+ "aggregatingElement=" + aggregatingElement + ", "
+ "element=" + element + ", "
+ "isComponent=" + isComponent
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DefineComponentClassesMetadata) {
DefineComponentClassesMetadata that = (DefineComponentClassesMetadata) o;
return this.aggregatingElement.equals(that.aggregatingElement())
&& this.element.equals(that.element())
&& this.isComponent == that.isComponent();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= aggregatingElement.hashCode();
h$ *= 1000003;
h$ ^= element.hashCode();
h$ *= 1000003;
h$ ^= isComponent ? 1231 : 1237;
return h$;
}
}