Package jsonvalues.console
Class JsObjConsole
- java.lang.Object
-
- jsonvalues.console.JsObjConsole
-
- All Implemented Interfaces:
java.util.function.Function<JsPath,JsFuture<JsObj>>
,JsConsole<JsObj>
,Program<JsObj>
public class JsObjConsole extends java.lang.Object implements JsConsole<JsObj>, Program<JsObj>
represents a supplier of a completable future than composes a json object from the user inputs on the console. It has the same recursive structure as a json object. Each key of the object has a supplier of a completable future associated that, when executed, prints out its path on the 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 object is composed.
-
-
Constructor Summary
Constructors Constructor Description JsObjConsole()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JsFuture<JsObj>
apply(JsPath path)
JsObj
exec()
Execute the programstatic JsObjConsole
of(java.lang.String key, JsConsole<?> io)
static factory method to create a JsObjIO of one mappingstatic JsObjConsole
of(java.lang.String ke1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2)
static factory method to create a JsObjIO of two mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3)
static factory method to create a JsObjIO of three mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4)
static factory method to create a JsObjIO of four mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5)
static factory method to create a JsObjIO of five mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6)
static factory method to create a JsObjIO of six mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7)
static factory method to create a JsObjIO of seven mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8)
static factory method to create a JsObjIO of eight mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9)
static factory method to create a JsObjIO of nine mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10)
static factory method to create a JsObjIO of ten mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11)
static factory method to create a JsObjIO of eleven mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12)
static factory method to create a JsObjIO of twelve mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13)
static factory method to create a JsObjIO of thirteen mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14)
static factory method to create a JsObjIO of fourteen mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14, java.lang.String key15, JsConsole<?> io15)
static factory method to create a JsObjIO of fifteen mappingsstatic JsObjConsole
of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14, java.lang.String key15, JsConsole<?> io15, java.lang.String key16, JsConsole<?> io16)
static factory method to create a JsObjIO of sixteen mappingsjava.util.function.Consumer<JsPath>
promptMessage()
-
-
-
Method Detail
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14, java.lang.String key15, JsConsole<?> io15, java.lang.String key16, JsConsole<?> io16)
static factory method to create a JsObjIO of sixteen mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh keykey12
- the twelfth keyio12
- the mapping associated to the twelfth keykey13
- the thirteenth keyio13
- the mapping associated to the thirteenth keykey14
- the fourteenth keyio14
- the mapping associated to the fourteenth keykey15
- the fifteenth keyio15
- the mapping associated to the fifteenth keykey16
- the sixteenth keyio16
- the mapping associated to the sixteenth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14, java.lang.String key15, JsConsole<?> io15)
static factory method to create a JsObjIO of fifteen mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh keykey12
- the twelfth keyio12
- the mapping associated to the twelfth keykey13
- the thirteenth keyio13
- the mapping associated to the thirteenth keykey14
- the fourteenth keyio14
- the mapping associated to the fourteenth keykey15
- the fifteenth keyio15
- the mapping associated to the fifteenth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13, java.lang.String key14, JsConsole<?> io14)
static factory method to create a JsObjIO of fourteen mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh keykey12
- the twelfth keyio12
- the mapping associated to the twelfth keykey13
- the thirteenth keyio13
- the mapping associated to the thirteenth keykey14
- the fourteenth keyio14
- the mapping associated to the fourteenth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12, java.lang.String key13, JsConsole<?> io13)
static factory method to create a JsObjIO of thirteen mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh keykey12
- the twelfth keyio12
- the mapping associated to the twelfth keykey13
- the thirteenth keyio13
- the mapping associated to the thirteenth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11, java.lang.String key12, JsConsole<?> io12)
static factory method to create a JsObjIO of twelve mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh keykey12
- the twelfth keyio12
- the mapping associated to the twelfth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10, java.lang.String key11, JsConsole<?> io11)
static factory method to create a JsObjIO of eleven mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth keykey11
- the eleventh keyio11
- the mapping associated to the eleventh key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9, java.lang.String key10, JsConsole<?> io10)
static factory method to create a JsObjIO of ten mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth keykey10
- the tenth keyio10
- the mapping associated to the tenth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8, java.lang.String key9, JsConsole<?> io9)
static factory method to create a JsObjIO of nine mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight keykey9
- the ninth keyio9
- the mapping associated to the ninth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7, java.lang.String key8, JsConsole<?> io8)
static factory method to create a JsObjIO of eight mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh keykey8
- the eight keyio8
- the mapping associated to the eight key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6, java.lang.String key7, JsConsole<?> io7)
static factory method to create a JsObjIO of seven mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth keykey7
- the seventh keyio7
- the mapping associated to the seventh key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5, java.lang.String key6, JsConsole<?> io6)
static factory method to create a JsObjIO of six mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth keykey6
- the sixth keyio6
- the mapping associated to the sixth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4, java.lang.String key5, JsConsole<?> io5)
static factory method to create a JsObjIO of five mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth keykey5
- the fifth keyio5
- the mapping associated to the fifth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3, java.lang.String key4, JsConsole<?> io4)
static factory method to create a JsObjIO of four mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third keykey4
- the forth keyio4
- the mapping associated to the forth key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2, java.lang.String key3, JsConsole<?> io3)
static factory method to create a JsObjIO of three mappings- Parameters:
key1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second keykey3
- the third keyio3
- the mapping associated to the third key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String ke1, JsConsole<?> io1, java.lang.String key2, JsConsole<?> io2)
static factory method to create a JsObjIO of two mappings- Parameters:
ke1
- the first keyio1
- the mapping associated to the first keykey2
- the second keyio2
- the mapping associated to the second key- Returns:
- a JsObjIO
-
of
public static JsObjConsole of(java.lang.String key, JsConsole<?> io)
static factory method to create a JsObjIO of one mapping- Parameters:
key
- the keyio
- the mapping associated to the key- Returns:
- a JsObjIO
-
exec
public JsObj exec() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Description copied from interface:Program
Execute the program
-
promptMessage
public java.util.function.Consumer<JsPath> promptMessage()
- Specified by:
promptMessage
in interfaceJsConsole<JsObj>
- Returns:
- consumer that accepts a path and prints out a message indicating to the user that they must type in the value associated to that path
-
-