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

dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentMetadatas_DefineComponentMetadata Maven / Gradle / Ivy

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


package dagger.hilt.processor.internal.definecomponent;

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_DefineComponentMetadatas_DefineComponentMetadata extends DefineComponentMetadatas.DefineComponentMetadata {

  private final TypeElement component;
  private final ImmutableList scopes;
  private final Optional parentMetadata;

  AutoValue_DefineComponentMetadatas_DefineComponentMetadata(
      TypeElement component,
      ImmutableList scopes,
      Optional parentMetadata) {
    if (component == null) {
      throw new NullPointerException("Null component");
    }
    this.component = component;
    if (scopes == null) {
      throw new NullPointerException("Null scopes");
    }
    this.scopes = scopes;
    if (parentMetadata == null) {
      throw new NullPointerException("Null parentMetadata");
    }
    this.parentMetadata = parentMetadata;
  }

  @Override
  TypeElement component() {
    return component;
  }

  @Override
  ImmutableList scopes() {
    return scopes;
  }

  @Override
  Optional parentMetadata() {
    return parentMetadata;
  }

  @Override
  public String toString() {
    return "DefineComponentMetadata{"
         + "component=" + component + ", "
         + "scopes=" + scopes + ", "
         + "parentMetadata=" + parentMetadata
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DefineComponentMetadatas.DefineComponentMetadata) {
      DefineComponentMetadatas.DefineComponentMetadata that = (DefineComponentMetadatas.DefineComponentMetadata) o;
      return (this.component.equals(that.component()))
           && (this.scopes.equals(that.scopes()))
           && (this.parentMetadata.equals(that.parentMetadata()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= component.hashCode();
    h$ *= 1000003;
    h$ ^= scopes.hashCode();
    h$ *= 1000003;
    h$ ^= parentMetadata.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy