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

dagger.internal.codegen.binding.$AutoValue_ModuleDescriptor Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.internal.codegen.binding;

import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.base.ModuleKind;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ModuleDescriptor extends ModuleDescriptor {

  private final XTypeElement moduleElement;

  private final ImmutableSet bindings;

  private final ImmutableSet multibindingDeclarations;

  private final ImmutableSet subcomponentDeclarations;

  private final ImmutableSet delegateDeclarations;

  private final ImmutableSet optionalDeclarations;

  private final ModuleKind kind;

  $AutoValue_ModuleDescriptor(
      XTypeElement moduleElement,
      ImmutableSet bindings,
      ImmutableSet multibindingDeclarations,
      ImmutableSet subcomponentDeclarations,
      ImmutableSet delegateDeclarations,
      ImmutableSet optionalDeclarations,
      ModuleKind kind) {
    if (moduleElement == null) {
      throw new NullPointerException("Null moduleElement");
    }
    this.moduleElement = moduleElement;
    if (bindings == null) {
      throw new NullPointerException("Null bindings");
    }
    this.bindings = bindings;
    if (multibindingDeclarations == null) {
      throw new NullPointerException("Null multibindingDeclarations");
    }
    this.multibindingDeclarations = multibindingDeclarations;
    if (subcomponentDeclarations == null) {
      throw new NullPointerException("Null subcomponentDeclarations");
    }
    this.subcomponentDeclarations = subcomponentDeclarations;
    if (delegateDeclarations == null) {
      throw new NullPointerException("Null delegateDeclarations");
    }
    this.delegateDeclarations = delegateDeclarations;
    if (optionalDeclarations == null) {
      throw new NullPointerException("Null optionalDeclarations");
    }
    this.optionalDeclarations = optionalDeclarations;
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
  }

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

  @Override
  public ImmutableSet bindings() {
    return bindings;
  }

  @Override
  ImmutableSet multibindingDeclarations() {
    return multibindingDeclarations;
  }

  @Override
  ImmutableSet subcomponentDeclarations() {
    return subcomponentDeclarations;
  }

  @Override
  ImmutableSet delegateDeclarations() {
    return delegateDeclarations;
  }

  @Override
  ImmutableSet optionalDeclarations() {
    return optionalDeclarations;
  }

  @Override
  public ModuleKind kind() {
    return kind;
  }

  @Override
  public String toString() {
    return "ModuleDescriptor{"
        + "moduleElement=" + moduleElement + ", "
        + "bindings=" + bindings + ", "
        + "multibindingDeclarations=" + multibindingDeclarations + ", "
        + "subcomponentDeclarations=" + subcomponentDeclarations + ", "
        + "delegateDeclarations=" + delegateDeclarations + ", "
        + "optionalDeclarations=" + optionalDeclarations + ", "
        + "kind=" + kind
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ModuleDescriptor) {
      ModuleDescriptor that = (ModuleDescriptor) o;
      return this.moduleElement.equals(that.moduleElement())
          && this.bindings.equals(that.bindings())
          && this.multibindingDeclarations.equals(that.multibindingDeclarations())
          && this.subcomponentDeclarations.equals(that.subcomponentDeclarations())
          && this.delegateDeclarations.equals(that.delegateDeclarations())
          && this.optionalDeclarations.equals(that.optionalDeclarations())
          && this.kind.equals(that.kind());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= moduleElement.hashCode();
    h$ *= 1000003;
    h$ ^= bindings.hashCode();
    h$ *= 1000003;
    h$ ^= multibindingDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= subcomponentDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= delegateDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= optionalDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= kind.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy