Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base;
 
public class BatchCommand extends Command {
	private List<Commandcommands = new LinkedList<Command>();
		throw new IllegalArgumentException("BatchCommand can not be instantiated with parameter map.");
	}
	public void addCommand(Command c) {
	}
	public void execute() throws IOException {
		for(Command c : ) {
			c.run();
		}
	}
		s.append("\"commands\":[");
		for(Command c : ) {
			s.append(c.toJson());
			s.append(",");
		}
		if(.size() != 0) {
			s = s.deleteCharAt(s.length()-1);
		}
		s.append("]");
		return s.toString();
	}
New to GrepCode? Check out our FAQ X