1 package org.simantics.db.testing.base;
3 import java.util.ArrayList;
5 import org.simantics.db.testing.common.Command;
7 public class CommandListImpl implements CommandList {
9 public ArrayList<Command> commands = new ArrayList<Command>();
12 public <T extends Command> T add(T command) {
13 commands.add(command);
17 public Command[] toArray() {
18 return commands.toArray(new Command[commands.size()]);