Class Seq

java.lang.Object
com.github.sttk.sabi.Seq
All Implemented Interfaces:
Runner

public class Seq extends Object implements Runner
Seq is a class to run Runner(s) sequencially.
  • Constructor Details

    • Seq

      public Seq(Runner... runners)
      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.