dagger.hilt.processor.internal.aggregateddeps.AutoValue_PkgPrivateMetadata 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.aggregateddeps;
import com.squareup.javapoet.ClassName;
import java.util.Optional;
import javax.annotation.Generated;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PkgPrivateMetadata extends PkgPrivateMetadata {
private final TypeElement typeElement;
private final Optional optionalInstallInAnnotationMirror;
private final ClassName annotation;
AutoValue_PkgPrivateMetadata(
TypeElement typeElement,
Optional optionalInstallInAnnotationMirror,
ClassName annotation) {
if (typeElement == null) {
throw new NullPointerException("Null typeElement");
}
this.typeElement = typeElement;
if (optionalInstallInAnnotationMirror == null) {
throw new NullPointerException("Null optionalInstallInAnnotationMirror");
}
this.optionalInstallInAnnotationMirror = optionalInstallInAnnotationMirror;
if (annotation == null) {
throw new NullPointerException("Null annotation");
}
this.annotation = annotation;
}
@Override
TypeElement getTypeElement() {
return typeElement;
}
@Override
Optional getOptionalInstallInAnnotationMirror() {
return optionalInstallInAnnotationMirror;
}
@Override
ClassName getAnnotation() {
return annotation;
}
@Override
public String toString() {
return "PkgPrivateMetadata{"
+ "typeElement=" + typeElement + ", "
+ "optionalInstallInAnnotationMirror=" + optionalInstallInAnnotationMirror + ", "
+ "annotation=" + annotation
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PkgPrivateMetadata) {
PkgPrivateMetadata that = (PkgPrivateMetadata) o;
return (this.typeElement.equals(that.getTypeElement()))
&& (this.optionalInstallInAnnotationMirror.equals(that.getOptionalInstallInAnnotationMirror()))
&& (this.annotation.equals(that.getAnnotation()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= typeElement.hashCode();
h$ *= 1000003;
h$ ^= optionalInstallInAnnotationMirror.hashCode();
h$ *= 1000003;
h$ ^= annotation.hashCode();
return h$;
}
}