java.lang.Object
jsonvalues.gen.JsTupleGen
Represents a tuple generator that is modeled with a JsArray generator.
Each generator of the tuple is created from a new seed that is calculated
passing the original one to the
split generator
.-
Method Summary
Modifier and TypeMethodDescriptionReturns a supplier from the specified seed that generates a new tuple, modeled with a JsArray, each time it's calledstatic fun.gen.Gen<JsArray>
Returns a tuple generator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fun.gen.Gen
map, peek, sample, sample, sample, suchThat, suchThat, then
-
Method Details
-
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
-
apply
Returns a supplier from the specified seed that generates a new tuple, modeled with a JsArray, each time it's called
-