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