com.github.rinde.rinsim.geom.AutoValue_ListenableGraph_ListenableGraphSupplier Maven / Gradle / Ivy
package com.github.rinde.rinsim.geom;
import com.google.common.base.Supplier;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ListenableGraph_ListenableGraphSupplier extends ListenableGraph.ListenableGraphSupplier {
private final Supplier> supplier;
AutoValue_ListenableGraph_ListenableGraphSupplier(
Supplier> supplier) {
if (supplier == null) {
throw new NullPointerException("Null supplier");
}
this.supplier = supplier;
}
@Override
Supplier> supplier() {
return supplier;
}
@Override
public String toString() {
return "ListenableGraphSupplier{"
+ "supplier=" + supplier
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ListenableGraph.ListenableGraphSupplier) {
ListenableGraph.ListenableGraphSupplier that = (ListenableGraph.ListenableGraphSupplier) o;
return (this.supplier.equals(that.supplier()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.supplier.hashCode();
return h;
}
}