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

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

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


package dagger.hilt.processor.internal.aliasof;

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;

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

  private final TypeElement aggregatingElement;
  private final ImmutableList defineComponentScopeElements;
  private final TypeElement aliasElement;

  AutoValue_AliasOfPropagatedDataMetadata(
      TypeElement aggregatingElement,
      ImmutableList defineComponentScopeElements,
      TypeElement 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 TypeElement aggregatingElement() {
    return aggregatingElement;
  }

  @Override
  ImmutableList defineComponentScopeElements() {
    return defineComponentScopeElements;
  }

  @Override
  TypeElement 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