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

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

The newest version!
package dagger.internal.codegen.binding;

import androidx.room.compiler.processing.XExecutableParameterElement;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSetMultimap;
import dagger.internal.codegen.base.ComponentCreatorAnnotation;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ComponentCreatorDescriptor extends ComponentCreatorDescriptor {

  private final ComponentCreatorAnnotation annotation;

  private final XTypeElement typeElement;

  private final XMethodElement factoryMethod;

  private final ImmutableSetMultimap unvalidatedSetterMethods;

  private final ImmutableSetMultimap unvalidatedFactoryParameters;

  $AutoValue_ComponentCreatorDescriptor(
      ComponentCreatorAnnotation annotation,
      XTypeElement typeElement,
      XMethodElement factoryMethod,
      ImmutableSetMultimap unvalidatedSetterMethods,
      ImmutableSetMultimap unvalidatedFactoryParameters) {
    if (annotation == null) {
      throw new NullPointerException("Null annotation");
    }
    this.annotation = annotation;
    if (typeElement == null) {
      throw new NullPointerException("Null typeElement");
    }
    this.typeElement = typeElement;
    if (factoryMethod == null) {
      throw new NullPointerException("Null factoryMethod");
    }
    this.factoryMethod = factoryMethod;
    if (unvalidatedSetterMethods == null) {
      throw new NullPointerException("Null unvalidatedSetterMethods");
    }
    this.unvalidatedSetterMethods = unvalidatedSetterMethods;
    if (unvalidatedFactoryParameters == null) {
      throw new NullPointerException("Null unvalidatedFactoryParameters");
    }
    this.unvalidatedFactoryParameters = unvalidatedFactoryParameters;
  }

  @Override
  public ComponentCreatorAnnotation annotation() {
    return annotation;
  }

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

  @Override
  public XMethodElement factoryMethod() {
    return factoryMethod;
  }

  @Override
  ImmutableSetMultimap unvalidatedSetterMethods() {
    return unvalidatedSetterMethods;
  }

  @Override
  ImmutableSetMultimap unvalidatedFactoryParameters() {
    return unvalidatedFactoryParameters;
  }

  @Override
  public String toString() {
    return "ComponentCreatorDescriptor{"
        + "annotation=" + annotation + ", "
        + "typeElement=" + typeElement + ", "
        + "factoryMethod=" + factoryMethod + ", "
        + "unvalidatedSetterMethods=" + unvalidatedSetterMethods + ", "
        + "unvalidatedFactoryParameters=" + unvalidatedFactoryParameters
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ComponentCreatorDescriptor) {
      ComponentCreatorDescriptor that = (ComponentCreatorDescriptor) o;
      return this.annotation.equals(that.annotation())
          && this.typeElement.equals(that.typeElement())
          && this.factoryMethod.equals(that.factoryMethod())
          && this.unvalidatedSetterMethods.equals(that.unvalidatedSetterMethods())
          && this.unvalidatedFactoryParameters.equals(that.unvalidatedFactoryParameters());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= annotation.hashCode();
    h$ *= 1000003;
    h$ ^= typeElement.hashCode();
    h$ *= 1000003;
    h$ ^= factoryMethod.hashCode();
    h$ *= 1000003;
    h$ ^= unvalidatedSetterMethods.hashCode();
    h$ *= 1000003;
    h$ ^= unvalidatedFactoryParameters.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy