dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentMetadatas_DefineComponentMetadata 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.XTypeElement;
import com.google.common.collect.ImmutableList;
import java.util.Optional;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentMetadatas_DefineComponentMetadata extends DefineComponentMetadatas.DefineComponentMetadata {
private final XTypeElement component;
private final ImmutableList scopes;
private final Optional parentMetadata;
AutoValue_DefineComponentMetadatas_DefineComponentMetadata(
XTypeElement component,
ImmutableList scopes,
Optional parentMetadata) {
if (component == null) {
throw new NullPointerException("Null component");
}
this.component = component;
if (scopes == null) {
throw new NullPointerException("Null scopes");
}
this.scopes = scopes;
if (parentMetadata == null) {
throw new NullPointerException("Null parentMetadata");
}
this.parentMetadata = parentMetadata;
}
@Override
XTypeElement component() {
return component;
}
@Override
ImmutableList scopes() {
return scopes;
}
@Override
Optional parentMetadata() {
return parentMetadata;
}
@Override
public String toString() {
return "DefineComponentMetadata{"
+ "component=" + component + ", "
+ "scopes=" + scopes + ", "
+ "parentMetadata=" + parentMetadata
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DefineComponentMetadatas.DefineComponentMetadata) {
DefineComponentMetadatas.DefineComponentMetadata that = (DefineComponentMetadatas.DefineComponentMetadata) o;
return this.component.equals(that.component())
&& this.scopes.equals(that.scopes())
&& this.parentMetadata.equals(that.parentMetadata());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= component.hashCode();
h$ *= 1000003;
h$ ^= scopes.hashCode();
h$ *= 1000003;
h$ ^= parentMetadata.hashCode();
return h$;
}
}