cleaned and made ready task 1
This commit is contained in:
15
week3_TinsaeGhilay/Task 1/src/compute/Task.java
Normal file
15
week3_TinsaeGhilay/Task 1/src/compute/Task.java
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user