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

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

There is a newer version: 2.52
Show newest version
package dagger.hilt.processor.internal.root;

import androidx.room.compiler.processing.XTypeElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_Root extends Root {

  private final XTypeElement element;

  private final XTypeElement originatingRootElement;

  private final boolean isTestRoot;

  AutoValue_Root(
      XTypeElement element,
      XTypeElement originatingRootElement,
      boolean isTestRoot) {
    if (element == null) {
      throw new NullPointerException("Null element");
    }
    this.element = element;
    if (originatingRootElement == null) {
      throw new NullPointerException("Null originatingRootElement");
    }
    this.originatingRootElement = originatingRootElement;
    this.isTestRoot = isTestRoot;
  }

  @Override
  XTypeElement element() {
    return element;
  }

  @Override
  XTypeElement originatingRootElement() {
    return originatingRootElement;
  }

  @Override
  boolean isTestRoot() {
    return isTestRoot;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Root) {
      Root that = (Root) o;
      return this.element.equals(that.element())
          && this.originatingRootElement.equals(that.originatingRootElement())
          && this.isTestRoot == that.isTestRoot();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= element.hashCode();
    h$ *= 1000003;
    h$ ^= originatingRootElement.hashCode();
    h$ *= 1000003;
    h$ ^= isTestRoot ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy