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.45-kim-rc1
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 javax.annotation.Generated;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 abstract class $AutoValue_ResolvedBindings extends ResolvedBindings {

  private final Key key;
  private final ImmutableSetMultimap allContributionBindings;
  private final ImmutableMap allMembersInjectionBindings;
  private final ImmutableSet multibindingDeclarations;
  private final ImmutableSet subcomponentDeclarations;
  private final ImmutableSet optionalBindingDeclarations;

  $AutoValue_ResolvedBindings(
      Key key,
      ImmutableSetMultimap allContributionBindings,
      ImmutableMap allMembersInjectionBindings,
      ImmutableSet multibindingDeclarations,
      ImmutableSet subcomponentDeclarations,
      ImmutableSet optionalBindingDeclarations) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (allContributionBindings == null) {
      throw new NullPointerException("Null allContributionBindings");
    }
    this.allContributionBindings = allContributionBindings;
    if (allMembersInjectionBindings == null) {
      throw new NullPointerException("Null allMembersInjectionBindings");
    }
    this.allMembersInjectionBindings = allMembersInjectionBindings;
    if (multibindingDeclarations == null) {
      throw new NullPointerException("Null multibindingDeclarations");
    }
    this.multibindingDeclarations = multibindingDeclarations;
    if (subcomponentDeclarations == null) {
      throw new NullPointerException("Null subcomponentDeclarations");
    }
    this.subcomponentDeclarations = subcomponentDeclarations;
    if (optionalBindingDeclarations == null) {
      throw new NullPointerException("Null optionalBindingDeclarations");
    }
    this.optionalBindingDeclarations = optionalBindingDeclarations;
  }

  @Override
  Key key() {
    return key;
  }

  @Override
  ImmutableSetMultimap allContributionBindings() {
    return allContributionBindings;
  }

  @Override
  ImmutableMap allMembersInjectionBindings() {
    return allMembersInjectionBindings;
  }

  @Override
  ImmutableSet multibindingDeclarations() {
    return multibindingDeclarations;
  }

  @Override
  ImmutableSet subcomponentDeclarations() {
    return subcomponentDeclarations;
  }

  @Override
  ImmutableSet optionalBindingDeclarations() {
    return optionalBindingDeclarations;
  }

  @Override
  public String toString() {
    return "ResolvedBindings{"
         + "key=" + key + ", "
         + "allContributionBindings=" + allContributionBindings + ", "
         + "allMembersInjectionBindings=" + allMembersInjectionBindings + ", "
         + "multibindingDeclarations=" + multibindingDeclarations + ", "
         + "subcomponentDeclarations=" + subcomponentDeclarations + ", "
         + "optionalBindingDeclarations=" + optionalBindingDeclarations
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ResolvedBindings) {
      ResolvedBindings that = (ResolvedBindings) o;
      return (this.key.equals(that.key()))
           && (this.allContributionBindings.equals(that.allContributionBindings()))
           && (this.allMembersInjectionBindings.equals(that.allMembersInjectionBindings()))
           && (this.multibindingDeclarations.equals(that.multibindingDeclarations()))
           && (this.subcomponentDeclarations.equals(that.subcomponentDeclarations()))
           && (this.optionalBindingDeclarations.equals(that.optionalBindingDeclarations()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= key.hashCode();
    h$ *= 1000003;
    h$ ^= allContributionBindings.hashCode();
    h$ *= 1000003;
    h$ ^= allMembersInjectionBindings.hashCode();
    h$ *= 1000003;
    h$ ^= multibindingDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= subcomponentDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= optionalBindingDeclarations.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy