------------------Show Code ( lines)------------------
package com.todomvc.shared.command;
1

An object of this class executes commands of a specific type. It loads the target object of a command and passes it to Command's execute(). Type C is the type of command this executor executes.

public interface CommandExecutor<C extends Command<?>> {
2

Executes command and returns either the command that was passed or else a new command suitable to update other clients. An example of returning a new command is when a new object was created: the returned command might contain the new object.

    Command<?> execute(C command);

}