dagger.internal.codegen.binding.AutoValue_BindingGraph 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 com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.model.ComponentPath;
import java.lang.Override;
import java.lang.SuppressWarnings;
final class AutoValue_BindingGraph extends $AutoValue_BindingGraph {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet componentRequirements;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableMap componentDescriptorsByPath;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableList subgraphs;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet bindingNodes;
AutoValue_BindingGraph(dagger.internal.codegen.model.BindingGraph.ComponentNode componentNode$,
BindingGraph.TopLevelBindingGraph topLevelBindingGraph$) {
super(componentNode$, topLevelBindingGraph$);
}
@Override
public ImmutableSet componentRequirements() {
if (componentRequirements == null) {
synchronized (this) {
if (componentRequirements == null) {
componentRequirements = super.componentRequirements();
if (componentRequirements == null) {
throw new NullPointerException("componentRequirements() cannot return null");
}
}
}
}
return componentRequirements;
}
@Override
public ImmutableMap componentDescriptorsByPath() {
if (componentDescriptorsByPath == null) {
synchronized (this) {
if (componentDescriptorsByPath == null) {
componentDescriptorsByPath = super.componentDescriptorsByPath();
if (componentDescriptorsByPath == null) {
throw new NullPointerException("componentDescriptorsByPath() cannot return null");
}
}
}
}
return componentDescriptorsByPath;
}
@Override
public ImmutableList subgraphs() {
if (subgraphs == null) {
synchronized (this) {
if (subgraphs == null) {
subgraphs = super.subgraphs();
if (subgraphs == null) {
throw new NullPointerException("subgraphs() cannot return null");
}
}
}
}
return subgraphs;
}
@Override
public ImmutableSet bindingNodes() {
if (bindingNodes == null) {
synchronized (this) {
if (bindingNodes == null) {
bindingNodes = super.bindingNodes();
if (bindingNodes == null) {
throw new NullPointerException("bindingNodes() cannot return null");
}
}
}
}
return bindingNodes;
}
}