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.45-kim-rc1
Show newest version


package dagger.hilt.processor.internal.definecomponent;

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_DefineComponentClassesMetadata extends DefineComponentClassesMetadata {

  private final TypeElement aggregatingElement;
  private final TypeElement element;
  private final boolean isComponent;

  AutoValue_DefineComponentClassesMetadata(
      TypeElement aggregatingElement,
      TypeElement 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 TypeElement aggregatingElement() {
    return aggregatingElement;
  }

  @Override
  TypeElement 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