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

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

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

import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XExecutableParameterElement;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.base.ComponentCreatorAnnotation;
import java.lang.Override;
import java.lang.SuppressWarnings;

final class AutoValue_ComponentCreatorDescriptor extends $AutoValue_ComponentCreatorDescriptor {
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableMap requirementElements;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableMap setterMethods;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile ImmutableMap factoryParameters;

  AutoValue_ComponentCreatorDescriptor(ComponentCreatorAnnotation annotation$,
      XTypeElement typeElement$, XMethodElement factoryMethod$,
      ImmutableSetMultimap unvalidatedSetterMethods$,
      ImmutableSetMultimap unvalidatedFactoryParameters$) {
    super(annotation$, typeElement$, factoryMethod$, unvalidatedSetterMethods$, unvalidatedFactoryParameters$);
  }

  @Override
  ImmutableMap requirementElements() {
    if (requirementElements == null) {
      synchronized (this) {
        if (requirementElements == null) {
          requirementElements = super.requirementElements();
          if (requirementElements == null) {
            throw new NullPointerException("requirementElements() cannot return null");
          }
        }
      }
    }
    return requirementElements;
  }

  @Override
  public ImmutableMap setterMethods() {
    if (setterMethods == null) {
      synchronized (this) {
        if (setterMethods == null) {
          setterMethods = super.setterMethods();
          if (setterMethods == null) {
            throw new NullPointerException("setterMethods() cannot return null");
          }
        }
      }
    }
    return setterMethods;
  }

  @Override
  public ImmutableMap factoryParameters() {
    if (factoryParameters == null) {
      synchronized (this) {
        if (factoryParameters == null) {
          factoryParameters = super.factoryParameters();
          if (factoryParameters == null) {
            throw new NullPointerException("factoryParameters() cannot return null");
          }
        }
      }
    }
    return factoryParameters;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy