Interface ICommand<R,​M>

    • Method Detail

      • execute

        R execute​(M model,
                  ICommandExecutor<M> executor)
        Executes the operation encapsulated by this class.

        Notice: This method is not intended to be called by clients. Use a ICommandExecutor instead to execute the operation.

        Parameters:
        model - the model
        executor - the ICommandExecutor that currently executes this operation. Use this reference to invoke sub-operations also implementing this ICommand interface.
        Returns:
      • cachable

        boolean cachable()
        Returns:
        whether the command may be cached or not.