Package net.jqwik.api
Class Combinators.Combinator2<T1,T2>
- java.lang.Object
-
- net.jqwik.api.Combinators.Combinator2<T1,T2>
-
- Enclosing class:
- Combinators
public static class Combinators.Combinator2<T1,T2> extends java.lang.Object
Combinator for two values.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <@NotNull R>
Arbitrary<R>as(Combinators.F2<T1,T2,@NotNull R> combinator)
Combine two values.<R> Arbitrary<R>
flatAs(Combinators.F2<T1,T2,Arbitrary<R>> flatCombinator)
-
-
-
Method Detail
-
as
public <@NotNull R> Arbitrary<R> as(Combinators.F2<T1,T2,@NotNull R> combinator)
Combine two values.- Type Parameters:
R
- return type- Parameters:
combinator
- function- Returns:
- arbitrary instance
-
flatAs
public <R> Arbitrary<R> flatAs(Combinators.F2<T1,T2,Arbitrary<R>> flatCombinator)
-
-