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

dagger.hilt.processor.internal.aggregateddeps.AutoValue_ComponentDependencies Maven / Gradle / Ivy

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

import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSetMultimap;
import com.squareup.javapoet.ClassName;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ComponentDependencies extends ComponentDependencies {

  private final ImmutableSetMultimap modules;

  private final ImmutableSetMultimap entryPoints;

  private final ImmutableSetMultimap componentEntryPoints;

  private AutoValue_ComponentDependencies(
      ImmutableSetMultimap modules,
      ImmutableSetMultimap entryPoints,
      ImmutableSetMultimap componentEntryPoints) {
    this.modules = modules;
    this.entryPoints = entryPoints;
    this.componentEntryPoints = componentEntryPoints;
  }

  @Override
  public ImmutableSetMultimap modules() {
    return modules;
  }

  @Override
  public ImmutableSetMultimap entryPoints() {
    return entryPoints;
  }

  @Override
  public ImmutableSetMultimap componentEntryPoints() {
    return componentEntryPoints;
  }

  @Override
  public String toString() {
    return "ComponentDependencies{"
        + "modules=" + modules + ", "
        + "entryPoints=" + entryPoints + ", "
        + "componentEntryPoints=" + componentEntryPoints
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ComponentDependencies) {
      ComponentDependencies that = (ComponentDependencies) o;
      return this.modules.equals(that.modules())
          && this.entryPoints.equals(that.entryPoints())
          && this.componentEntryPoints.equals(that.componentEntryPoints());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= modules.hashCode();
    h$ *= 1000003;
    h$ ^= entryPoints.hashCode();
    h$ *= 1000003;
    h$ ^= componentEntryPoints.hashCode();
    return h$;
  }

  static final class Builder extends ComponentDependencies.Builder {
    private ImmutableSetMultimap.Builder modulesBuilder$;
    private ImmutableSetMultimap modules;
    private ImmutableSetMultimap.Builder entryPointsBuilder$;
    private ImmutableSetMultimap entryPoints;
    private ImmutableSetMultimap.Builder componentEntryPointsBuilder$;
    private ImmutableSetMultimap componentEntryPoints;
    Builder() {
    }
    @Override
    ImmutableSetMultimap.Builder modulesBuilder() {
      if (modulesBuilder$ == null) {
        modulesBuilder$ = new ImmutableSetMultimap.Builder();
      }
      return modulesBuilder$;
    }
    @Override
    ImmutableSetMultimap.Builder entryPointsBuilder() {
      if (entryPointsBuilder$ == null) {
        entryPointsBuilder$ = new ImmutableSetMultimap.Builder();
      }
      return entryPointsBuilder$;
    }
    @Override
    ImmutableSetMultimap.Builder componentEntryPointsBuilder() {
      if (componentEntryPointsBuilder$ == null) {
        componentEntryPointsBuilder$ = new ImmutableSetMultimap.Builder();
      }
      return componentEntryPointsBuilder$;
    }
    @Override
    ComponentDependencies build() {
      if (modulesBuilder$ != null) {
        this.modules = modulesBuilder$.build();
      } else if (this.modules == null) {
        this.modules = ImmutableSetMultimap.of();
      }
      if (entryPointsBuilder$ != null) {
        this.entryPoints = entryPointsBuilder$.build();
      } else if (this.entryPoints == null) {
        this.entryPoints = ImmutableSetMultimap.of();
      }
      if (componentEntryPointsBuilder$ != null) {
        this.componentEntryPoints = componentEntryPointsBuilder$.build();
      } else if (this.componentEntryPoints == null) {
        this.componentEntryPoints = ImmutableSetMultimap.of();
      }
      return new AutoValue_ComponentDependencies(
          this.modules,
          this.entryPoints,
          this.componentEntryPoints);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy