OnJava8-Examples/onjava/TaskItem.java
Bruce Eckel bc0026c3e1 Radically reorganized
Plus many new examples in "streams" chapter.
2015-11-11 20:20:04 -08:00

14 lines
324 B
Java

// onjava/TaskItem.java
// A Future and the Callable that produced it.
package onjava;
import java.util.concurrent.*;
public class TaskItem<R,C extends Callable<R>> {
public final Future<R> future;
public final C task;
public TaskItem(Future<R> future, C task) {
this.future = future;
this.task = task;
}
}