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-compiler Show documentation
Show all versions of hilt-compiler Show documentation
A fast dependency injector for Android and Java.
The newest version!
package dagger.hilt.processor.internal.definecomponent;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata extends DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata {
private final XTypeElement builder;
private final XMethodElement buildMethod;
private final DefineComponentMetadatas.DefineComponentMetadata componentMetadata;
AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata(
XTypeElement builder,
XMethodElement 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
XTypeElement builder() {
return builder;
}
@Override
XMethodElement 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$;
}
}