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

dagger.internal.codegen.binding.AutoValue_ProductionBinding Maven / Gradle / Ivy

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

import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.base.ContributionType;
import dagger.internal.codegen.model.DependencyRequest;
import dagger.internal.codegen.model.Key;
import dagger.internal.codegen.model.Scope;
import java.lang.Object;
import java.lang.Override;
import java.lang.SuppressWarnings;
import java.util.Optional;

final class AutoValue_ProductionBinding extends $AutoValue_ProductionBinding {
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ContributionType contributionType;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableSet dependencies;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile boolean requiresModuleInstance;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile boolean requiresModuleInstance$Memoized;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile int hashCode;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile boolean hashCode$Memoized;

  AutoValue_ProductionBinding(Key key$, Optional bindingElement$,
      Optional contributingModule$, Optional unresolved$,
      Optional scope$, ImmutableSet explicitDependencies$,
      DependencyRequest executorRequest$, DependencyRequest monitorRequest$) {
    super(key$, bindingElement$, contributingModule$, unresolved$, scope$, explicitDependencies$, executorRequest$, monitorRequest$);
  }

  @Override
  public ContributionType contributionType() {
    if (contributionType == null) {
      synchronized (this) {
        if (contributionType == null) {
          contributionType = super.contributionType();
          if (contributionType == null) {
            throw new NullPointerException("contributionType() cannot return null");
          }
        }
      }
    }
    return contributionType;
  }

  @Override
  public ImmutableSet dependencies() {
    if (dependencies == null) {
      synchronized (this) {
        if (dependencies == null) {
          dependencies = super.dependencies();
          if (dependencies == null) {
            throw new NullPointerException("dependencies() cannot return null");
          }
        }
      }
    }
    return dependencies;
  }

  @Override
  public boolean requiresModuleInstance() {
    if (!requiresModuleInstance$Memoized) {
      synchronized (this) {
        if (!requiresModuleInstance$Memoized) {
          requiresModuleInstance = super.requiresModuleInstance();
          requiresModuleInstance$Memoized = true;
        }
      }
    }
    return requiresModuleInstance;
  }

  @Override
  public int hashCode() {
    if (!hashCode$Memoized) {
      synchronized (this) {
        if (!hashCode$Memoized) {
          hashCode = super.hashCode();
          hashCode$Memoized = true;
        }
      }
    }
    return hashCode;
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    return that instanceof AutoValue_ProductionBinding && this.hashCode() == that.hashCode() && super.equals(that);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy