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.52
Show newest version
package dagger.hilt.processor.internal.aggregateddeps;

import androidx.room.compiler.processing.XAnnotation;
import androidx.room.compiler.processing.XTypeElement;
import com.squareup.javapoet.ClassName;
import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_PkgPrivateMetadata extends PkgPrivateMetadata {

  private final XTypeElement typeElement;

  private final Optional optionalInstallInAnnotation;

  private final ClassName annotation;

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

  @Override
  XTypeElement getTypeElement() {
    return typeElement;
  }

  @Override
  Optional getOptionalInstallInAnnotation() {
    return optionalInstallInAnnotation;
  }

  @Override
  ClassName getAnnotation() {
    return annotation;
  }

  @Override
  public String toString() {
    return "PkgPrivateMetadata{"
        + "typeElement=" + typeElement + ", "
        + "optionalInstallInAnnotation=" + optionalInstallInAnnotation + ", "
        + "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.optionalInstallInAnnotation.equals(that.getOptionalInstallInAnnotation())
          && this.annotation.equals(that.getAnnotation());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy