dagger.internal.codegen.binding.AutoValue_ModuleDescriptor 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.XTypeElement;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.base.ModuleKind;
import java.lang.Boolean;
import java.lang.Override;
import java.lang.SuppressWarnings;
final class AutoValue_ModuleDescriptor extends $AutoValue_ModuleDescriptor {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet allBindingDeclarations;
AutoValue_ModuleDescriptor(XTypeElement moduleElement$,
ImmutableSet bindings$,
ImmutableSet multibindingDeclarations$,
ImmutableSet subcomponentDeclarations$,
ImmutableSet delegateDeclarations$,
ImmutableSet optionalDeclarations$, ModuleKind kind$,
Boolean isImplicitlyIncluded$) {
super(moduleElement$, bindings$, multibindingDeclarations$, subcomponentDeclarations$, delegateDeclarations$, optionalDeclarations$, kind$, isImplicitlyIncluded$);
}
@Override
public ImmutableSet allBindingDeclarations() {
if (allBindingDeclarations == null) {
synchronized (this) {
if (allBindingDeclarations == null) {
allBindingDeclarations = super.allBindingDeclarations();
if (allBindingDeclarations == null) {
throw new NullPointerException("allBindingDeclarations() cannot return null");
}
}
}
}
return allBindingDeclarations;
}
}