27 lines
848 B
Java
27 lines
848 B
Java
package envoy.client.data.commands;
|
|
|
|
import java.util.function.Function;
|
|
|
|
/**
|
|
* This class is the base class for all {@link SystemCommand}s that need a
|
|
* String to parse their function.
|
|
* <p>
|
|
* Project: <strong>envoy-client</strong><br>
|
|
* File: <strong>StringArgSystemCommand.java</strong><br>
|
|
* Created: <strong>16.07.2020</strong><br>
|
|
*
|
|
* @author Leon Hofmeister
|
|
* @since Envoy Client v0.1-beta
|
|
*/
|
|
public class StringArgSystemCommand extends SystemCommand<String> {
|
|
|
|
/**
|
|
* Constructs a new {@code NoArgSystemCommand} that takes a String argument.
|
|
*
|
|
* @param command the string that must be inputted to execute the given action
|
|
* @param action the action that should be performed
|
|
* @since Envoy Client v0.1-beta
|
|
*/
|
|
public StringArgSystemCommand(String command, Function<String, Void> action) { super(command, action); }
|
|
}
|