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

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

There is a newer version: 2.54
Show newest version
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