Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Commands.java Add looseSequence() method #6639

Closed
wants to merge 11 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,22 @@ public static Command sequence(Command... commands) {
return new SequentialCommandGroup(commands);
}

/**
* Runs individual commands in a series without grouped sequence behavior.
*
* <p>Each command is run independently by proxy. The requirements of
* each command are reserved only for the duration of that command and
* are not reserved for an entire group process as they are in a
* grouped sequence.
*
* @param commands the commands to include in the series
* @return the command to run the series of commands
* @see #sequence() use sequence() to invoke group sequence behavior
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @see #sequence() use sequence() to invoke group sequence behavior
* @see #sequence(Command...) use sequence() to invoke group sequence behavior

The parameter type(s) of a method must be specified. (See https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#see)

*/
public static Command ungroupedSequence(Command... commands) {
return sequence(proxyAll(commands));
}

/**
* Runs a group of commands in series, one after the other. Once the last command ends, the group
* is restarted.
Expand Down