Package jsonvalues.gen
Class JsTupleGen
- java.lang.Object
-
- jsonvalues.gen.JsTupleGen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<JsArray>
apply(Random seed)
Returns a supplier from the specified seed that generates a new tuple, modeled with a JsArray, each time it's calledstatic fun.gen.Gen<JsArray>
of(fun.gen.Gen<? extends JsValue> gen, fun.gen.Gen<? extends JsValue>... others)
Returns a tuple generator.
-
-
-
Method Detail
-
of
@SafeVarargs public static fun.gen.Gen<JsArray> of(fun.gen.Gen<? extends JsValue> gen, fun.gen.Gen<? extends JsValue>... others)
Returns a tuple generator. The tuple is modeled with a JsArray. Each element generator is independent of each other, being created from a different seed- Parameters:
gen
- the head element generatorothers
- the rest of generators- Returns:
- a JsArray generator
-
-