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 androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSetMultimap;
import dagger.internal.codegen.model.ComponentPath;
import dagger.internal.codegen.model.Key;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ResolvedBindings extends ResolvedBindings {
private final ComponentPath componentPath;
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(
ComponentPath componentPath,
Key key,
ImmutableSetMultimap allContributionBindings,
ImmutableMap allMembersInjectionBindings,
ImmutableSet multibindingDeclarations,
ImmutableSet subcomponentDeclarations,
ImmutableSet optionalBindingDeclarations) {
if (componentPath == null) {
throw new NullPointerException("Null componentPath");
}
this.componentPath = componentPath;
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
ComponentPath componentPath() {
return componentPath;
}
@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{"
+ "componentPath=" + componentPath + ", "
+ "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.componentPath.equals(that.componentPath())
&& 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$ ^= componentPath.hashCode();
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$;
}
}