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

dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentClassesMetadata Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.hilt.processor.internal.definecomponent;

import androidx.room.compiler.processing.XTypeElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentClassesMetadata extends DefineComponentClassesMetadata {

  private final XTypeElement aggregatingElement;

  private final XTypeElement element;

  private final boolean isComponent;

  AutoValue_DefineComponentClassesMetadata(
      XTypeElement aggregatingElement,
      XTypeElement element,
      boolean isComponent) {
    if (aggregatingElement == null) {
      throw new NullPointerException("Null aggregatingElement");
    }
    this.aggregatingElement = aggregatingElement;
    if (element == null) {
      throw new NullPointerException("Null element");
    }
    this.element = element;
    this.isComponent = isComponent;
  }

  @Override
  public XTypeElement aggregatingElement() {
    return aggregatingElement;
  }

  @Override
  public XTypeElement element() {
    return element;
  }

  @Override
  boolean isComponent() {
    return isComponent;
  }

  @Override
  public String toString() {
    return "DefineComponentClassesMetadata{"
        + "aggregatingElement=" + aggregatingElement + ", "
        + "element=" + element + ", "
        + "isComponent=" + isComponent
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DefineComponentClassesMetadata) {
      DefineComponentClassesMetadata that = (DefineComponentClassesMetadata) o;
      return this.aggregatingElement.equals(that.aggregatingElement())
          && this.element.equals(that.element())
          && this.isComponent == that.isComponent();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= aggregatingElement.hashCode();
    h$ *= 1000003;
    h$ ^= element.hashCode();
    h$ *= 1000003;
    h$ ^= isComponent ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy