dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata 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.ExecutableElement;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata extends DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata {
private final TypeElement builder;
private final ExecutableElement buildMethod;
private final DefineComponentMetadatas.DefineComponentMetadata componentMetadata;
AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata(
TypeElement builder,
ExecutableElement buildMethod,
DefineComponentMetadatas.DefineComponentMetadata componentMetadata) {
if (builder == null) {
throw new NullPointerException("Null builder");
}
this.builder = builder;
if (buildMethod == null) {
throw new NullPointerException("Null buildMethod");
}
this.buildMethod = buildMethod;
if (componentMetadata == null) {
throw new NullPointerException("Null componentMetadata");
}
this.componentMetadata = componentMetadata;
}
@Override
TypeElement builder() {
return builder;
}
@Override
ExecutableElement buildMethod() {
return buildMethod;
}
@Override
DefineComponentMetadatas.DefineComponentMetadata componentMetadata() {
return componentMetadata;
}
@Override
public String toString() {
return "DefineComponentBuilderMetadata{"
+ "builder=" + builder + ", "
+ "buildMethod=" + buildMethod + ", "
+ "componentMetadata=" + componentMetadata
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata) {
DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata that = (DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata) o;
return (this.builder.equals(that.builder()))
&& (this.buildMethod.equals(that.buildMethod()))
&& (this.componentMetadata.equals(that.componentMetadata()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= builder.hashCode();
h$ *= 1000003;
h$ ^= buildMethod.hashCode();
h$ *= 1000003;
h$ ^= componentMetadata.hashCode();
return h$;
}
}