dagger.hilt.processor.internal.AutoValue_BaseProcessor_ProcessingState 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;
import com.squareup.javapoet.ClassName;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BaseProcessor_ProcessingState extends BaseProcessor.ProcessingState {
private final ClassName annotationClassName;
private final ClassName elementClassName;
AutoValue_BaseProcessor_ProcessingState(
ClassName annotationClassName,
ClassName elementClassName) {
if (annotationClassName == null) {
throw new NullPointerException("Null annotationClassName");
}
this.annotationClassName = annotationClassName;
if (elementClassName == null) {
throw new NullPointerException("Null elementClassName");
}
this.elementClassName = elementClassName;
}
@Override
ClassName annotationClassName() {
return annotationClassName;
}
@Override
ClassName elementClassName() {
return elementClassName;
}
@Override
public String toString() {
return "ProcessingState{"
+ "annotationClassName=" + annotationClassName + ", "
+ "elementClassName=" + elementClassName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BaseProcessor.ProcessingState) {
BaseProcessor.ProcessingState that = (BaseProcessor.ProcessingState) o;
return (this.annotationClassName.equals(that.annotationClassName()))
&& (this.elementClassName.equals(that.elementClassName()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= annotationClassName.hashCode();
h$ *= 1000003;
h$ ^= elementClassName.hashCode();
return h$;
}
}