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-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.definecomponent;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DefineComponentClassesMetadata extends DefineComponentClassesMetadata {
private final TypeElement aggregatingElement;
private final TypeElement element;
private final boolean isComponent;
AutoValue_DefineComponentClassesMetadata(
TypeElement aggregatingElement,
TypeElement 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 TypeElement aggregatingElement() {
return aggregatingElement;
}
@Override
TypeElement 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$;
}
}