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

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

package dagger.internal.codegen.binding;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSetMultimap;
import java.lang.Override;
import javax.annotation.Generated;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.element.VariableElement;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_ComponentCreatorDescriptor extends $AutoValue_ComponentCreatorDescriptor {
  private volatile ImmutableMap requirementElements;

  private volatile ImmutableMap setterMethods;

  private volatile ImmutableMap factoryParameters;

  AutoValue_ComponentCreatorDescriptor(ComponentCreatorAnnotation annotation$,
      TypeElement typeElement$, ExecutableElement 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 - 2025 Weber Informatics LLC | Privacy Policy