dagger.internal.codegen.binding.AutoValue_ResolvedBindings 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.
package dagger.internal.codegen.binding;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSetMultimap;
import dagger.spi.model.Key;
import java.lang.Override;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_ResolvedBindings extends $AutoValue_ResolvedBindings {
private volatile int hashCode;
private volatile boolean hashCode$Memoized;
private volatile ImmutableSet contributionBindings;
AutoValue_ResolvedBindings(Key key$,
ImmutableSetMultimap allContributionBindings$,
ImmutableMap allMembersInjectionBindings$,
ImmutableSet multibindingDeclarations$,
ImmutableSet subcomponentDeclarations$,
ImmutableSet optionalBindingDeclarations$) {
super(key$, allContributionBindings$, allMembersInjectionBindings$, multibindingDeclarations$, subcomponentDeclarations$, optionalBindingDeclarations$);
}
@Override
public int hashCode() {
if (!hashCode$Memoized) {
synchronized (this) {
if (!hashCode$Memoized) {
hashCode = super.hashCode();
hashCode$Memoized = true;
}
}
}
return hashCode;
}
@Override
ImmutableSet contributionBindings() {
if (contributionBindings == null) {
synchronized (this) {
if (contributionBindings == null) {
contributionBindings = super.contributionBindings();
if (contributionBindings == null) {
throw new NullPointerException("contributionBindings() cannot return null");
}
}
}
}
return contributionBindings;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy