Package org.kissweb

Class CL.Questions

java.lang.Object
org.kissweb.CL.Questions
Enclosing class:
CL

public static class CL.Questions extends Object
  • Constructor Details

    • Questions

      public Questions()
  • Method Details

    • add

      public static int add(Supplier<Integer> fun)
      Add a question. The application-defined function take no arguments and returns an integer. If the return value is below start, it specifies a relative index of the next question. For example 1 means the question defined after the current question. And -1 means the question defined before the current question. Alternatively, the function could return the label (the return value of the add method) of the next question.
      Parameters:
      fun -
    • run

      public static boolean run()
      Run through the list of questions.
      Returns: