Datasets:

ArXiv:
License:
File size: 559 Bytes
c574d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package SimpleSlot;

/**
 * Created by Administrator on 2017/6/19.
 */
public class MacroOffCommand implements Command
{
    private Command[] commands;

    public MacroOffCommand(Command[] commands)
    {
        this.commands = commands;
    }

    @Override
    public void execute()
    {
        for (int i = 0; i < commands.length; i++)
        {
            commands[i].execute();
        }
    }

    @Override
    public void undo()
    {
        for (int i = 0; i < commands.length; i++)
        {
            commands[i].undo();
        }
    }
}