Minor - create abstract SimpleAutoTask for simple tool tasks

This commit is contained in:
ljacqu
2016-10-23 13:14:06 +02:00
parent d09964f1cb
commit edf7c227b2
7 changed files with 27 additions and 52 deletions
@@ -0,0 +1,15 @@
package tools.utils;
import java.util.Scanner;
/**
* Abstract class for auto tool tasks that perform exactly the same action for
* {@link ToolTask#execute(Scanner)} and {@link AutoToolTask#executeDefault()}.
*/
public abstract class SimpleAutoTask implements AutoToolTask {
@Override
public final void execute(Scanner scanner) {
executeDefault();
}
}