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

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

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

import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XMethodType;
import androidx.room.compiler.processing.XType;
import androidx.room.compiler.processing.XTypeElement;
import androidx.room.compiler.processing.XVariableElement;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.SuppressWarnings;

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

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

  AutoValue_AssistedInjectionAnnotations_AssistedFactoryMetadata(XTypeElement factory$,
      XType factoryType$, XMethodElement factoryMethod$, XMethodType factoryMethodType$,
      XTypeElement assistedInjectElement$, XType assistedInjectType$,
      ImmutableList assistedInjectAssistedParameters$,
      ImmutableList assistedFactoryAssistedParameters$) {
    super(factory$, factoryType$, factoryMethod$, factoryMethodType$, assistedInjectElement$, assistedInjectType$, assistedInjectAssistedParameters$, assistedFactoryAssistedParameters$);
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy