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

dagger.hilt.processor.internal.AutoValue_BaseProcessor_ProcessingState Maven / Gradle / Ivy

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


package dagger.hilt.processor.internal;

import com.squareup.javapoet.ClassName;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_BaseProcessor_ProcessingState extends BaseProcessor.ProcessingState {

  private final ClassName annotationClassName;
  private final ClassName elementClassName;

  AutoValue_BaseProcessor_ProcessingState(
      ClassName annotationClassName,
      ClassName elementClassName) {
    if (annotationClassName == null) {
      throw new NullPointerException("Null annotationClassName");
    }
    this.annotationClassName = annotationClassName;
    if (elementClassName == null) {
      throw new NullPointerException("Null elementClassName");
    }
    this.elementClassName = elementClassName;
  }

  @Override
  ClassName annotationClassName() {
    return annotationClassName;
  }

  @Override
  ClassName elementClassName() {
    return elementClassName;
  }

  @Override
  public String toString() {
    return "ProcessingState{"
         + "annotationClassName=" + annotationClassName + ", "
         + "elementClassName=" + elementClassName
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BaseProcessor.ProcessingState) {
      BaseProcessor.ProcessingState that = (BaseProcessor.ProcessingState) o;
      return (this.annotationClassName.equals(that.annotationClassName()))
           && (this.elementClassName.equals(that.elementClassName()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= annotationClassName.hashCode();
    h$ *= 1000003;
    h$ ^= elementClassName.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy