Package net.jqwik.api
Class Combinators
java.lang.Object
net.jqwik.api.Combinators
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Combinator for two values.static interface
Combinator for three values.static interface
Combinator for four values.static interface
Combinator for five values.static interface
Combinator for six values.static interface
Combinator for seven values.static interface
Combinator for eight values.static class
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Combinator for any number of values. -
Method Summary
Modifier and TypeMethodDescriptionstatic <@Nullable T>
Combinators.ListCombinator<T>Combine a list of arbitraries into one.static <@Nullable T1,
@Nullable T2>
Combinators.Combinator2<T1,T2> Combine 2 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3>
Combinators.Combinator3<T1,T2, T3> Combine 3 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4>
Combinators.Combinator4<T1,T2, T3, T4> combine
(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4) Combine 4 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5>
Combinators.Combinator5<T1,T2, T3, T4, T5> combine
(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5) Combine 5 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6>
Combinators.Combinator6<T1,T2, T3, T4, T5, T6> combine
(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6) Combine 6 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7>
Combinators.Combinator7<T1,T2, T3, T4, T5, T6, T7> combine
(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6, Arbitrary<@Nullable T7> a7) Combine 7 arbitraries into one.static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7, @Nullable T8>
Combinators.Combinator8<T1,T2, T3, T4, T5, T6, T7, T8> combine
(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6, Arbitrary<@Nullable T7> a7, Arbitrary<@Nullable T8> a8) Combine 8 arbitraries into one.
-
Method Details
-
combine
public static <@Nullable T1,@Nullable T2> Combinators.Combinator2<T1,T2> combine(Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2) Combine 2 arbitraries into one.- Returns:
- Combinator2 instance which can be evaluated using Combinators.Combinator2.as(net.jqwik.api.Combinators.F2<T1, T2, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator3<T1,@Nullable T3> T2, combineT3> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3) Combine 3 arbitraries into one.- Returns:
- Combinator3 instance which can be evaluated using Combinators.Combinator3.as(net.jqwik.api.Combinators.F3<T1, T2, T3, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator4<T1,@Nullable T3, @Nullable T4> T2, combineT3, T4> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4) Combine 4 arbitraries into one.- Returns:
- Combinator4 instance which can be evaluated using Combinators.Combinator4.as(net.jqwik.api.Combinators.F4<T1, T2, T3, T4, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator5<T1,@Nullable T3, @Nullable T4, @Nullable T5> T2, combineT3, T4, T5> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5) Combine 5 arbitraries into one.- Returns:
- Combinator5 instance which can be evaluated using Combinators.Combinator5.as(net.jqwik.api.Combinators.F5<T1, T2, T3, T4, T5, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator6<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6> T2, combineT3, T4, T5, T6> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6) Combine 6 arbitraries into one.- Returns:
- Combinator6 instance which can be evaluated using Combinators.Combinator6.as(net.jqwik.api.Combinators.F6<T1, T2, T3, T4, T5, T6, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator7<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7> T2, combineT3, T4, T5, T6, T7> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6, Arbitrary<@Nullable T7> a7) Combine 7 arbitraries into one.- Returns:
- Combinator7 instance which can be evaluated using Combinators.Combinator7.as(net.jqwik.api.Combinators.F7<T1, T2, T3, T4, T5, T6, T7, R>)
-
combine
public static <@Nullable T1,@Nullable T2, Combinators.Combinator8<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7, @Nullable T8> T2, combineT3, T4, T5, T6, T7, T8> (Arbitrary<@Nullable T1> a1, Arbitrary<@Nullable T2> a2, Arbitrary<@Nullable T3> a3, Arbitrary<@Nullable T4> a4, Arbitrary<@Nullable T5> a5, Arbitrary<@Nullable T6> a6, Arbitrary<@Nullable T7> a7, Arbitrary<@Nullable T8> a8) Combine 8 arbitraries into one.- Returns:
- Combinator8 instance which can be evaluated using Combinators.Combinator8.as(net.jqwik.api.Combinators.F8<T1, T2, T3, T4, T5, T6, T7, T8, R>)
-
combine
public static <@Nullable T> Combinators.ListCombinator<T> combine(List<Arbitrary<@Nullable T>> listOfArbitraries) Combine a list of arbitraries into one.- Returns:
- ListCombinator instance which can be evaluated using Combinators.ListCombinator.as(java.util.function.Function<java.util.List<T>, R>)
-