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

dagger.hilt.android.processor.internal.bindvalue.AutoValue_BindValueMetadata Maven / Gradle / Ivy

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

import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_BindValueMetadata extends BindValueMetadata {

  private final XTypeElement testElement;

  private final ImmutableSet bindValueElements;

  AutoValue_BindValueMetadata(
      XTypeElement testElement,
      ImmutableSet bindValueElements) {
    if (testElement == null) {
      throw new NullPointerException("Null testElement");
    }
    this.testElement = testElement;
    if (bindValueElements == null) {
      throw new NullPointerException("Null bindValueElements");
    }
    this.bindValueElements = bindValueElements;
  }

  @Override
  XTypeElement testElement() {
    return testElement;
  }

  @Override
  ImmutableSet bindValueElements() {
    return bindValueElements;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy