dagger.internal.codegen.binding.AutoValue_DelegateBinding Maven / Gradle / Ivy
package dagger.internal.codegen.binding;
import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.base.ContributionType;
import dagger.internal.codegen.model.DependencyRequest;
import dagger.internal.codegen.model.Key;
import dagger.internal.codegen.model.Scope;
import dagger.internal.codegen.xprocessing.Nullability;
import java.lang.Object;
import java.lang.Override;
import java.lang.SuppressWarnings;
import java.util.Optional;
final class AutoValue_DelegateBinding extends $AutoValue_DelegateBinding {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableSet dependencies;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile int hashCode;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile boolean hashCode$Memoized;
AutoValue_DelegateBinding(ContributionType contributionType$, Key key$,
Optional bindingElement$, Optional contributingModule$,
Optional extends Binding> unresolved$, Optional scope$,
Optional optionalBindingType$, Nullability nullability$,
DependencyRequest delegateRequest$) {
super(contributionType$, key$, bindingElement$, contributingModule$, unresolved$, scope$, optionalBindingType$, nullability$, delegateRequest$);
}
@Override
public ImmutableSet dependencies() {
if (dependencies == null) {
synchronized (this) {
if (dependencies == null) {
dependencies = super.dependencies();
if (dependencies == null) {
throw new NullPointerException("dependencies() cannot return null");
}
}
}
}
return dependencies;
}
@Override
public int hashCode() {
if (!hashCode$Memoized) {
synchronized (this) {
if (!hashCode$Memoized) {
hashCode = super.hashCode();
hashCode$Memoized = true;
}
}
}
return hashCode;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
return that instanceof AutoValue_DelegateBinding && this.hashCode() == that.hashCode() && super.equals(that);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy