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

dagger.hilt.processor.internal.root.AutoValue_TestRootMetadata Maven / Gradle / Ivy

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


package dagger.hilt.processor.internal.root;

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

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

  private final TypeElement testElement;
  private final TypeElement baseElement;

  AutoValue_TestRootMetadata(
      TypeElement testElement,
      TypeElement baseElement) {
    if (testElement == null) {
      throw new NullPointerException("Null testElement");
    }
    this.testElement = testElement;
    if (baseElement == null) {
      throw new NullPointerException("Null baseElement");
    }
    this.baseElement = baseElement;
  }

  @Override
  TypeElement testElement() {
    return testElement;
  }

  @Override
  TypeElement baseElement() {
    return baseElement;
  }

  @Override
  public String toString() {
    return "TestRootMetadata{"
         + "testElement=" + testElement + ", "
         + "baseElement=" + baseElement
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TestRootMetadata) {
      TestRootMetadata that = (TestRootMetadata) o;
      return (this.testElement.equals(that.testElement()))
           && (this.baseElement.equals(that.baseElement()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy