dagger.internal.codegen.binding.$AutoValue_MembersInjectionBinding 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.ImmutableSet;
import com.google.common.collect.ImmutableSortedSet;
import dagger.internal.codegen.model.DependencyRequest;
import dagger.internal.codegen.model.Key;
import java.util.Optional;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_MembersInjectionBinding extends MembersInjectionBinding {
private final Key key;
private final ImmutableSet explicitDependencies;
private final Optional unresolved;
private final ImmutableSortedSet injectionSites;
$AutoValue_MembersInjectionBinding(
Key key,
ImmutableSet explicitDependencies,
Optional unresolved,
ImmutableSortedSet injectionSites) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (explicitDependencies == null) {
throw new NullPointerException("Null explicitDependencies");
}
this.explicitDependencies = explicitDependencies;
if (unresolved == null) {
throw new NullPointerException("Null unresolved");
}
this.unresolved = unresolved;
if (injectionSites == null) {
throw new NullPointerException("Null injectionSites");
}
this.injectionSites = injectionSites;
}
@Override
public Key key() {
return key;
}
@Override
public ImmutableSet explicitDependencies() {
return explicitDependencies;
}
@Override
public Optional unresolved() {
return unresolved;
}
@Override
public ImmutableSortedSet injectionSites() {
return injectionSites;
}
@Override
public String toString() {
return "MembersInjectionBinding{"
+ "key=" + key + ", "
+ "explicitDependencies=" + explicitDependencies + ", "
+ "unresolved=" + unresolved + ", "
+ "injectionSites=" + injectionSites
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MembersInjectionBinding) {
MembersInjectionBinding that = (MembersInjectionBinding) o;
return this.key.equals(that.key())
&& this.explicitDependencies.equals(that.explicitDependencies())
&& this.unresolved.equals(that.unresolved())
&& this.injectionSites.equals(that.injectionSites());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= explicitDependencies.hashCode();
h$ *= 1000003;
h$ ^= unresolved.hashCode();
h$ *= 1000003;
h$ ^= injectionSites.hashCode();
return h$;
}
}