Class AbstractCommand

    • Field Detail

      • version

        protected int version
    • Constructor Detail

      • AbstractCommand

        public AbstractCommand()
    • Method Detail

      • setVersion

        public void setVersion​(int version)
        Specified by:
        setVersion in interface Command
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface Command
      • merge

        public boolean merge​(Command next)
        Description copied from interface: Command
        Merge the next command (meant for storage, it still needs to be executed before storage)
        Specified by:
        merge in interface Command
        Parameters:
        next - the next command
        Returns:
        true if merge is successful