dagger.hilt.processor.internal.aggregateddeps.AutoValue_AggregatedDepsMetadata 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.
package dagger.hilt.processor.internal.aggregateddeps;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import java.util.Optional;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_AggregatedDepsMetadata extends AggregatedDepsMetadata {
private final XTypeElement aggregatingElement;
private final Optional testElement;
private final ImmutableSet componentElements;
private final AggregatedDepsMetadata.DependencyType dependencyType;
private final XTypeElement dependency;
private final ImmutableSet replacedDependencies;
AutoValue_AggregatedDepsMetadata(
XTypeElement aggregatingElement,
Optional testElement,
ImmutableSet componentElements,
AggregatedDepsMetadata.DependencyType dependencyType,
XTypeElement dependency,
ImmutableSet replacedDependencies) {
if (aggregatingElement == null) {
throw new NullPointerException("Null aggregatingElement");
}
this.aggregatingElement = aggregatingElement;
if (testElement == null) {
throw new NullPointerException("Null testElement");
}
this.testElement = testElement;
if (componentElements == null) {
throw new NullPointerException("Null componentElements");
}
this.componentElements = componentElements;
if (dependencyType == null) {
throw new NullPointerException("Null dependencyType");
}
this.dependencyType = dependencyType;
if (dependency == null) {
throw new NullPointerException("Null dependency");
}
this.dependency = dependency;
if (replacedDependencies == null) {
throw new NullPointerException("Null replacedDependencies");
}
this.replacedDependencies = replacedDependencies;
}
@Override
public XTypeElement aggregatingElement() {
return aggregatingElement;
}
@Override
public Optional testElement() {
return testElement;
}
@Override
public ImmutableSet componentElements() {
return componentElements;
}
@Override
AggregatedDepsMetadata.DependencyType dependencyType() {
return dependencyType;
}
@Override
public XTypeElement dependency() {
return dependency;
}
@Override
public ImmutableSet replacedDependencies() {
return replacedDependencies;
}
@Override
public String toString() {
return "AggregatedDepsMetadata{"
+ "aggregatingElement=" + aggregatingElement + ", "
+ "testElement=" + testElement + ", "
+ "componentElements=" + componentElements + ", "
+ "dependencyType=" + dependencyType + ", "
+ "dependency=" + dependency + ", "
+ "replacedDependencies=" + replacedDependencies
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AggregatedDepsMetadata) {
AggregatedDepsMetadata that = (AggregatedDepsMetadata) o;
return this.aggregatingElement.equals(that.aggregatingElement())
&& this.testElement.equals(that.testElement())
&& this.componentElements.equals(that.componentElements())
&& this.dependencyType.equals(that.dependencyType())
&& this.dependency.equals(that.dependency())
&& this.replacedDependencies.equals(that.replacedDependencies());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= aggregatingElement.hashCode();
h$ *= 1000003;
h$ ^= testElement.hashCode();
h$ *= 1000003;
h$ ^= componentElements.hashCode();
h$ *= 1000003;
h$ ^= dependencyType.hashCode();
h$ *= 1000003;
h$ ^= dependency.hashCode();
h$ *= 1000003;
h$ ^= replacedDependencies.hashCode();
return h$;
}
}