- All Implemented Interfaces:
Runner
Seq
is a class to run
Runner
(s) sequencially.
-
Constructor Summary
Constructors
The constructor which takes an array of
Runner
(s) as arguments.
-
Method Summary
void
Runs the
Runner
(s) holding in this object sequencially.
static void
Runs the specified
Runner
(s) sequencially.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Seq
The constructor which takes an array of
Runner
(s) as arguments.
- Parameters:
runners
- Runner
's variadic arguments.
-
Method Details
-
run
public void run()
throws
Err
Runs the
Runner
(s) holding in this object sequencially.
- Specified by:
run
in interface Runner
- Throws:
Err
- If it is failed to run one of the runners.
-
run
public static void run(Runner... runners)
throws Err
Runs the specified
Runner
(s) sequencially.
- Parameters:
runners
- Runner
's variadic arguments.
- Throws:
Err
- If it is failed to run one of the runners.