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.52
Show newest version
package dagger.hilt.processor.internal.definecomponent;

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

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentMetadatas_DefineComponentMetadata extends DefineComponentMetadatas.DefineComponentMetadata {

  private final XTypeElement component;

  private final ImmutableList scopes;

  private final Optional parentMetadata;

  AutoValue_DefineComponentMetadatas_DefineComponentMetadata(
      XTypeElement 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
  XTypeElement 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