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

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

There is a newer version: 2.54
Show newest version
package dagger.internal.codegen.binding;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import dagger.spi.model.ComponentPath;
import java.lang.Override;
import javax.annotation.Generated;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_BindingGraph extends $AutoValue_BindingGraph {
  private volatile ImmutableSet componentRequirements;

  private volatile ImmutableMap componentDescriptorsByPath;

  private volatile ImmutableList subgraphs;

  private volatile ImmutableSet bindingNodes;

  AutoValue_BindingGraph(dagger.spi.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;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy