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-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 com.google.common.collect.ImmutableList;
import java.util.Optional;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DefineComponentMetadatas_DefineComponentMetadata extends DefineComponentMetadatas.DefineComponentMetadata {
private final TypeElement component;
private final ImmutableList scopes;
private final Optional parentMetadata;
AutoValue_DefineComponentMetadatas_DefineComponentMetadata(
TypeElement 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
TypeElement 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$;
}
}