cleaned and made ready task 1

This commit is contained in:
2025-12-21 18:23:33 +01:00
parent 9687607237
commit dbe0192866
47 changed files with 236 additions and 405 deletions

View File

@@ -0,0 +1,15 @@
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> {
T execute();
}