Apply suggestions from @kske 2

This commit is contained in:
Leon Hofmeister 2020-10-01 09:39:56 +02:00
parent 6eb6aedf8e
commit f077691c47
Signed by: delvh
GPG Key ID: 3DECE05F6D9A647C
1 changed files with 0 additions and 16 deletions

View File

@ -20,20 +20,4 @@ public interface Callable {
* @since Envoy Client v0.2-beta
*/
void call(List<String> arguments);
/**
* Performs the instance specific action when a {@link SystemCommand} has been
* called and additionally enables the user to execute his own action once it
* has been called.
*
* @param arguments the arguments that should be passed to the
* {@link SystemCommand}
* @param additionalAction the action to perform when this system command has
* been called
* @since Envoy Client v0.2-beta
*/
default void call(List<String> arguments, Runnable additionalAction) {
call(arguments);
additionalAction.run();
}
}