Lines Matching defs:command
33 private List<String> command;
42 * @param command
45 public ProcessBuilder(String... command) {
46 this(new ArrayList<String>(Arrays.asList(command)));
55 * @param command
58 * if {@code command} is {@code null}.
60 public ProcessBuilder(List<String> command) {
61 if (command == null) {
62 throw new NullPointerException("command == null");
64 this.command = command;
77 public List<String> command() {
78 return command;
84 * @param command
88 public ProcessBuilder command(String... command) {
89 return command(new ArrayList<String>(Arrays.asList(command)));
97 * @param command
101 * if {@code command} is {@code null}.
103 public ProcessBuilder command(List<String> command) {
104 if (command == null) {
105 throw new NullPointerException("command == null");
107 this.command = command;
181 * if any of the elements of {@link #command()} is {@code null}.
183 * if {@link #command()} is empty.
189 String[] cmdArray = command.toArray(new String[command.size()]);