dagger.hilt.processor.internal.root.$AutoValue_AggregatedRootMetadata 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.root;
import androidx.room.compiler.processing.XTypeElement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_AggregatedRootMetadata extends AggregatedRootMetadata {
private final XTypeElement aggregatingElement;
private final XTypeElement rootElement;
private final XTypeElement originatingRootElement;
private final XTypeElement rootAnnotation;
private final boolean allowsSharingComponent;
$AutoValue_AggregatedRootMetadata(
XTypeElement aggregatingElement,
XTypeElement rootElement,
XTypeElement originatingRootElement,
XTypeElement rootAnnotation,
boolean allowsSharingComponent) {
if (aggregatingElement == null) {
throw new NullPointerException("Null aggregatingElement");
}
this.aggregatingElement = aggregatingElement;
if (rootElement == null) {
throw new NullPointerException("Null rootElement");
}
this.rootElement = rootElement;
if (originatingRootElement == null) {
throw new NullPointerException("Null originatingRootElement");
}
this.originatingRootElement = originatingRootElement;
if (rootAnnotation == null) {
throw new NullPointerException("Null rootAnnotation");
}
this.rootAnnotation = rootAnnotation;
this.allowsSharingComponent = allowsSharingComponent;
}
@Override
public XTypeElement aggregatingElement() {
return aggregatingElement;
}
@Override
XTypeElement rootElement() {
return rootElement;
}
@Override
XTypeElement originatingRootElement() {
return originatingRootElement;
}
@Override
XTypeElement rootAnnotation() {
return rootAnnotation;
}
@Override
boolean allowsSharingComponent() {
return allowsSharingComponent;
}
@Override
public String toString() {
return "AggregatedRootMetadata{"
+ "aggregatingElement=" + aggregatingElement + ", "
+ "rootElement=" + rootElement + ", "
+ "originatingRootElement=" + originatingRootElement + ", "
+ "rootAnnotation=" + rootAnnotation + ", "
+ "allowsSharingComponent=" + allowsSharingComponent
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AggregatedRootMetadata) {
AggregatedRootMetadata that = (AggregatedRootMetadata) o;
return this.aggregatingElement.equals(that.aggregatingElement())
&& this.rootElement.equals(that.rootElement())
&& this.originatingRootElement.equals(that.originatingRootElement())
&& this.rootAnnotation.equals(that.rootAnnotation())
&& this.allowsSharingComponent == that.allowsSharingComponent();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= aggregatingElement.hashCode();
h$ *= 1000003;
h$ ^= rootElement.hashCode();
h$ *= 1000003;
h$ ^= originatingRootElement.hashCode();
h$ *= 1000003;
h$ ^= rootAnnotation.hashCode();
h$ *= 1000003;
h$ ^= allowsSharingComponent ? 1231 : 1237;
return h$;
}
}