OnJava8-Examples/streams/Operation.java
2015-11-14 16:18:05 -08:00

15 lines
309 B
Java

// streams/Operation.java
// ©2016 MindView LLC: see Copyright.txt
import java.util.*;
@FunctionalInterface
public interface Operation {
void execute();
static void runOps(List<Operation> ops) {
ops.forEach(Operation::execute);
}
static void show(String msg) {
System.out.println(msg);
}
}