Skip to content

Instantly share code, notes, and snippets.

abstract class Process {
public abstract void run() throws ProcessFailure;
public Process and(final Process other) {
final Process self = this;
return new Process() {
public void run() throws ProcessFailure {
self.run();
other.run();
}