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

dagger.hilt.android.processor.internal.androidentrypoint.$AutoValue_AndroidEntryPointMetadata Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.hilt.android.processor.internal.androidentrypoint;

import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.TypeName;
import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_AndroidEntryPointMetadata extends AndroidEntryPointMetadata {

  private final XTypeElement element;

  private final XTypeElement baseElement;

  private final ClassName generatedClassName;

  private final boolean requiresBytecodeInjection;

  private final AndroidEntryPointMetadata.AndroidType androidType;

  private final Optional baseMetadata;

  private final ImmutableSet installInComponents;

  private final TypeName componentManager;

  private final Optional componentManagerInitArgs;

  $AutoValue_AndroidEntryPointMetadata(
      XTypeElement element,
      XTypeElement baseElement,
      ClassName generatedClassName,
      boolean requiresBytecodeInjection,
      AndroidEntryPointMetadata.AndroidType androidType,
      Optional baseMetadata,
      ImmutableSet installInComponents,
      TypeName componentManager,
      Optional componentManagerInitArgs) {
    if (element == null) {
      throw new NullPointerException("Null element");
    }
    this.element = element;
    if (baseElement == null) {
      throw new NullPointerException("Null baseElement");
    }
    this.baseElement = baseElement;
    if (generatedClassName == null) {
      throw new NullPointerException("Null generatedClassName");
    }
    this.generatedClassName = generatedClassName;
    this.requiresBytecodeInjection = requiresBytecodeInjection;
    if (androidType == null) {
      throw new NullPointerException("Null androidType");
    }
    this.androidType = androidType;
    if (baseMetadata == null) {
      throw new NullPointerException("Null baseMetadata");
    }
    this.baseMetadata = baseMetadata;
    if (installInComponents == null) {
      throw new NullPointerException("Null installInComponents");
    }
    this.installInComponents = installInComponents;
    if (componentManager == null) {
      throw new NullPointerException("Null componentManager");
    }
    this.componentManager = componentManager;
    if (componentManagerInitArgs == null) {
      throw new NullPointerException("Null componentManagerInitArgs");
    }
    this.componentManagerInitArgs = componentManagerInitArgs;
  }

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

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

  @Override
  public ClassName generatedClassName() {
    return generatedClassName;
  }

  @Override
  public boolean requiresBytecodeInjection() {
    return requiresBytecodeInjection;
  }

  @Override
  public AndroidEntryPointMetadata.AndroidType androidType() {
    return androidType;
  }

  @Override
  public Optional baseMetadata() {
    return baseMetadata;
  }

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

  @Override
  public TypeName componentManager() {
    return componentManager;
  }

  @Override
  public Optional componentManagerInitArgs() {
    return componentManagerInitArgs;
  }

  @Override
  public String toString() {
    return "AndroidEntryPointMetadata{"
        + "element=" + element + ", "
        + "baseElement=" + baseElement + ", "
        + "generatedClassName=" + generatedClassName + ", "
        + "requiresBytecodeInjection=" + requiresBytecodeInjection + ", "
        + "androidType=" + androidType + ", "
        + "baseMetadata=" + baseMetadata + ", "
        + "installInComponents=" + installInComponents + ", "
        + "componentManager=" + componentManager + ", "
        + "componentManagerInitArgs=" + componentManagerInitArgs
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AndroidEntryPointMetadata) {
      AndroidEntryPointMetadata that = (AndroidEntryPointMetadata) o;
      return this.element.equals(that.element())
          && this.baseElement.equals(that.baseElement())
          && this.generatedClassName.equals(that.generatedClassName())
          && this.requiresBytecodeInjection == that.requiresBytecodeInjection()
          && this.androidType.equals(that.androidType())
          && this.baseMetadata.equals(that.baseMetadata())
          && this.installInComponents.equals(that.installInComponents())
          && this.componentManager.equals(that.componentManager())
          && this.componentManagerInitArgs.equals(that.componentManagerInitArgs());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= element.hashCode();
    h$ *= 1000003;
    h$ ^= baseElement.hashCode();
    h$ *= 1000003;
    h$ ^= generatedClassName.hashCode();
    h$ *= 1000003;
    h$ ^= requiresBytecodeInjection ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= androidType.hashCode();
    h$ *= 1000003;
    h$ ^= baseMetadata.hashCode();
    h$ *= 1000003;
    h$ ^= installInComponents.hashCode();
    h$ *= 1000003;
    h$ ^= componentManager.hashCode();
    h$ *= 1000003;
    h$ ^= componentManagerInitArgs.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy