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

dagger.hilt.processor.internal.aggregateddeps.AutoValue_PkgPrivateMetadata Maven / Gradle / Ivy

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


package dagger.hilt.processor.internal.aggregateddeps;

import com.squareup.javapoet.ClassName;
import java.util.Optional;
import javax.annotation.Generated;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.TypeElement;

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

  private final TypeElement typeElement;
  private final Optional optionalInstallInAnnotationMirror;
  private final ClassName annotation;

  AutoValue_PkgPrivateMetadata(
      TypeElement typeElement,
      Optional optionalInstallInAnnotationMirror,
      ClassName annotation) {
    if (typeElement == null) {
      throw new NullPointerException("Null typeElement");
    }
    this.typeElement = typeElement;
    if (optionalInstallInAnnotationMirror == null) {
      throw new NullPointerException("Null optionalInstallInAnnotationMirror");
    }
    this.optionalInstallInAnnotationMirror = optionalInstallInAnnotationMirror;
    if (annotation == null) {
      throw new NullPointerException("Null annotation");
    }
    this.annotation = annotation;
  }

  @Override
  TypeElement getTypeElement() {
    return typeElement;
  }

  @Override
  Optional getOptionalInstallInAnnotationMirror() {
    return optionalInstallInAnnotationMirror;
  }

  @Override
  ClassName getAnnotation() {
    return annotation;
  }

  @Override
  public String toString() {
    return "PkgPrivateMetadata{"
         + "typeElement=" + typeElement + ", "
         + "optionalInstallInAnnotationMirror=" + optionalInstallInAnnotationMirror + ", "
         + "annotation=" + annotation
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PkgPrivateMetadata) {
      PkgPrivateMetadata that = (PkgPrivateMetadata) o;
      return (this.typeElement.equals(that.getTypeElement()))
           && (this.optionalInstallInAnnotationMirror.equals(that.getOptionalInstallInAnnotationMirror()))
           && (this.annotation.equals(that.getAnnotation()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= typeElement.hashCode();
    h$ *= 1000003;
    h$ ^= optionalInstallInAnnotationMirror.hashCode();
    h$ *= 1000003;
    h$ ^= annotation.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy