hydra.compute.Flow Maven / Gradle / Ivy
package hydra.compute;
/**
* A variant of the State monad with built-in logging and error handling
*/
public class Flow {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/compute.Flow");
public final java.util.function.Function>> value;
public Flow (java.util.function.Function>> value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Flow)) {
return false;
}
Flow o = (Flow) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy