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

dagger.hilt.processor.internal.aliasof.AutoValue_AliasOfPropagatedDataMetadata Maven / Gradle / Ivy

The newest version!
package dagger.hilt.processor.internal.aliasof;

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

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_AliasOfPropagatedDataMetadata extends AliasOfPropagatedDataMetadata {

  private final XTypeElement aggregatingElement;

  private final ImmutableList defineComponentScopeElements;

  private final XTypeElement aliasElement;

  AutoValue_AliasOfPropagatedDataMetadata(
      XTypeElement aggregatingElement,
      ImmutableList defineComponentScopeElements,
      XTypeElement aliasElement) {
    if (aggregatingElement == null) {
      throw new NullPointerException("Null aggregatingElement");
    }
    this.aggregatingElement = aggregatingElement;
    if (defineComponentScopeElements == null) {
      throw new NullPointerException("Null defineComponentScopeElements");
    }
    this.defineComponentScopeElements = defineComponentScopeElements;
    if (aliasElement == null) {
      throw new NullPointerException("Null aliasElement");
    }
    this.aliasElement = aliasElement;
  }

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

  @Override
  ImmutableList defineComponentScopeElements() {
    return defineComponentScopeElements;
  }

  @Override
  XTypeElement aliasElement() {
    return aliasElement;
  }

  @Override
  public String toString() {
    return "AliasOfPropagatedDataMetadata{"
        + "aggregatingElement=" + aggregatingElement + ", "
        + "defineComponentScopeElements=" + defineComponentScopeElements + ", "
        + "aliasElement=" + aliasElement
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy