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.
The newest version!
package dagger.internal.codegen.binding;
import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.Key;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ResolvedBindings extends ResolvedBindings {
private final Key key;
private final ImmutableSet bindingNodes;
$AutoValue_ResolvedBindings(
Key key,
ImmutableSet bindingNodes) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (bindingNodes == null) {
throw new NullPointerException("Null bindingNodes");
}
this.bindingNodes = bindingNodes;
}
@Override
Key key() {
return key;
}
@Override
ImmutableSet bindingNodes() {
return bindingNodes;
}
@Override
public String toString() {
return "ResolvedBindings{"
+ "key=" + key + ", "
+ "bindingNodes=" + bindingNodes
+ "}";
}
@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.bindingNodes.equals(that.bindingNodes());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= bindingNodes.hashCode();
return h$;
}
}