Common interface for tool tasks. Note that the implementing tasks are instantiated with the default constructor. It is required that it be public.
| 7 | * with the default constructor. It is required that it be public. |
| 8 | */ |
| 9 | public interface ToolTask { |
| 10 | |
| 11 | /** |
| 12 | * Return the name of the task. |
| 13 | * |
| 14 | * @return Name of the task |
| 15 | */ |
| 16 | String getTaskName(); |
| 17 | |
| 18 | /** |
| 19 | * Execute the task. |
| 20 | * |
| 21 | * @param scanner Scanner to prompt the user with for options. Do not close it. |
| 22 | */ |
| 23 | void execute(Scanner scanner); |
| 24 | |
| 25 | } |
no outgoing calls
no test coverage detected