dagger.internal.codegen.binding.$AutoValue_BindingGraph_TopLevelBindingGraph 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.graph.ImmutableNetwork;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_BindingGraph_TopLevelBindingGraph extends BindingGraph.TopLevelBindingGraph {
private final ImmutableNetwork network;
private final boolean isFullBindingGraph;
$AutoValue_BindingGraph_TopLevelBindingGraph(
ImmutableNetwork network,
boolean isFullBindingGraph) {
if (network == null) {
throw new NullPointerException("Null network");
}
this.network = network;
this.isFullBindingGraph = isFullBindingGraph;
}
@Override
public ImmutableNetwork network() {
return network;
}
@Override
public boolean isFullBindingGraph() {
return isFullBindingGraph;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BindingGraph.TopLevelBindingGraph) {
BindingGraph.TopLevelBindingGraph that = (BindingGraph.TopLevelBindingGraph) o;
return this.network.equals(that.network())
&& this.isFullBindingGraph == that.isFullBindingGraph();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= network.hashCode();
h$ *= 1000003;
h$ ^= isFullBindingGraph ? 1231 : 1237;
return h$;
}
}