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

dagger.hilt.processor.internal.root.AutoValue_ProcessedRootSentinelMetadata 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;
import com.google.common.collect.ImmutableSet;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ProcessedRootSentinelMetadata extends ProcessedRootSentinelMetadata {

  private final XTypeElement aggregatingElement;

  private final ImmutableSet rootElements;

  AutoValue_ProcessedRootSentinelMetadata(
      XTypeElement aggregatingElement,
      ImmutableSet rootElements) {
    if (aggregatingElement == null) {
      throw new NullPointerException("Null aggregatingElement");
    }
    this.aggregatingElement = aggregatingElement;
    if (rootElements == null) {
      throw new NullPointerException("Null rootElements");
    }
    this.rootElements = rootElements;
  }

  @Override
  public XTypeElement aggregatingElement() {
    return aggregatingElement;
  }

  @Override
  ImmutableSet rootElements() {
    return rootElements;
  }

  @Override
  public String toString() {
    return "ProcessedRootSentinelMetadata{"
        + "aggregatingElement=" + aggregatingElement + ", "
        + "rootElements=" + rootElements
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ProcessedRootSentinelMetadata) {
      ProcessedRootSentinelMetadata that = (ProcessedRootSentinelMetadata) o;
      return this.aggregatingElement.equals(that.aggregatingElement())
          && this.rootElements.equals(that.rootElements());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy