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

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

There is a newer version: 2.52
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy