All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dagger.hilt.processor.internal.root.$AutoValue_AggregatedRootMetadata Maven / Gradle / Ivy

There is a newer version: 2.45-kim-rc1
Show newest version


package dagger.hilt.processor.internal.root;

import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 abstract class $AutoValue_AggregatedRootMetadata extends AggregatedRootMetadata {

  private final TypeElement aggregatingElement;
  private final TypeElement rootElement;
  private final TypeElement originatingRootElement;
  private final TypeElement rootAnnotation;
  private final boolean allowsSharingComponent;

  $AutoValue_AggregatedRootMetadata(
      TypeElement aggregatingElement,
      TypeElement rootElement,
      TypeElement originatingRootElement,
      TypeElement 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 TypeElement aggregatingElement() {
    return aggregatingElement;
  }

  @Override
  TypeElement rootElement() {
    return rootElement;
  }

  @Override
  TypeElement originatingRootElement() {
    return originatingRootElement;
  }

  @Override
  TypeElement 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$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy