dagger.internal.codegen.binding.AutoValue_ProvisionBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
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.common.collect.ImmutableSortedSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.base.ContributionType;
import dagger.internal.codegen.model.BindingKind;
import dagger.internal.codegen.model.DaggerAnnotation;
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_ProvisionBinding extends $AutoValue_ProvisionBinding {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet explicitDependencies;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet membersInjectionDependencies;
@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_ProvisionBinding(ContributionType contributionType$, Key key$,
Optional bindingElement$, Optional contributingModule$,
BindingKind kind$, Nullability nullability$, Optional mapKey$,
ImmutableSet provisionDependencies$,
ImmutableSortedSet injectionSites$,
Optional unresolved$, Optional scope$) {
super(contributionType$, key$, bindingElement$, contributingModule$, kind$, nullability$, mapKey$, provisionDependencies$, injectionSites$, unresolved$, scope$);
}
@Override
public ImmutableSet explicitDependencies() {
if (explicitDependencies == null) {
synchronized (this) {
if (explicitDependencies == null) {
explicitDependencies = super.explicitDependencies();
if (explicitDependencies == null) {
throw new NullPointerException("explicitDependencies() cannot return null");
}
}
}
}
return explicitDependencies;
}
@Override
ImmutableSet membersInjectionDependencies() {
if (membersInjectionDependencies == null) {
synchronized (this) {
if (membersInjectionDependencies == null) {
membersInjectionDependencies = super.membersInjectionDependencies();
if (membersInjectionDependencies == null) {
throw new NullPointerException("membersInjectionDependencies() cannot return null");
}
}
}
}
return membersInjectionDependencies;
}
@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_ProvisionBinding && this.hashCode() == that.hashCode() && super.equals(that);
}
}