Interface Command<T>

  • Type Parameters:
    T - The return parameter of the execute method.
    All Known Subinterfaces:
    PrettyCommand<T>, StreamCommand

    public interface Command<T>
    Defines an action that can be executed by a command.
    • Method Detail

      • execute

        T execute​(Object object)
           throws Exception
        The action code to be executed.
        Parameters:
        object - input object of the command.
        Returns:
        the output object of the command.
        Throws:
        Exception - if an error occurs during execution.