package compute; /** * This interface is the type of parameter to the executeTask() method of the * Compute interface * it defines the interface between the compute engine * and the work that it needs to do, providing the way to start the work * It defines a single method execute() whose return type is T * The interface itself also has a type T, which represents the result type of * the task's computation */ public interface Task { T execute(); }