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 entryPointMethods;
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableMap firstMatchingComponentMethods;
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableSet componentRequirements;
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableMap componentDescriptorsByPath;
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableList subgraphs;
  AutoValue_BindingGraph(dagger.internal.codegen.model.BindingGraph.ComponentNode componentNode$,
      BindingGraph.TopLevelBindingGraph topLevelBindingGraph$) {
    super(componentNode$, topLevelBindingGraph$);
  }
  @Override
  public ImmutableSet entryPointMethods() {
    if (entryPointMethods == null) {
      synchronized (this) {
        if (entryPointMethods == null) {
          entryPointMethods = super.entryPointMethods();
          if (entryPointMethods == null) {
            throw new NullPointerException("entryPointMethods() cannot return null");
          }
        }
      }
    }
    return entryPointMethods;
  }
  @Override
  ImmutableMap firstMatchingComponentMethods() {
    if (firstMatchingComponentMethods == null) {
      synchronized (this) {
        if (firstMatchingComponentMethods == null) {
          firstMatchingComponentMethods = super.firstMatchingComponentMethods();
          if (firstMatchingComponentMethods == null) {
            throw new NullPointerException("firstMatchingComponentMethods() cannot return null");
          }
        }
      }
    }
    return firstMatchingComponentMethods;
  }
  @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;
  }
}
              © 2015 - 2025 Weber Informatics LLC | Privacy Policy