Class JsArrayConsole

  • All Implemented Interfaces:
    Function<JsPath,​JsFuture<JsArray>>, JsConsole<JsArray>, Program<JsArray>

    public class JsArrayConsole
    extends Object
    implements JsConsole<JsArray>, Program<JsArray>
    represents a supplier of a completable future than composes a json array from the user inputs in the standard console. It has the same recursive structure as a json array. Each value of the array has a supplier of a completable future associated that, when executed, prints out its path in the standard console and waits for the user to type in a value and press Enter. When the user fills out all the values, all the futures are completed and a json array is composed.