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

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

The 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;

  private final Boolean isImplicitlyIncluded;

  $AutoValue_ModuleDescriptor(
      XTypeElement moduleElement,
      ImmutableSet bindings,
      ImmutableSet multibindingDeclarations,
      ImmutableSet subcomponentDeclarations,
      ImmutableSet delegateDeclarations,
      ImmutableSet optionalDeclarations,
      ModuleKind kind,
      Boolean isImplicitlyIncluded) {
    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;
    if (isImplicitlyIncluded == null) {
      throw new NullPointerException("Null isImplicitlyIncluded");
    }
    this.isImplicitlyIncluded = isImplicitlyIncluded;
  }

  @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 Boolean isImplicitlyIncluded() {
    return isImplicitlyIncluded;
  }

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

  @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())
          && this.isImplicitlyIncluded.equals(that.isImplicitlyIncluded());
    }
    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();
    h$ *= 1000003;
    h$ ^= isImplicitlyIncluded.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy