dagger.internal.codegen.binding.AutoValue_ComponentCreatorDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
The 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;
}
}