Package net.jqwik.api
Interface Combinators.ListCombinator<T>
-
- Enclosing class:
- Combinators
public static interface Combinators.ListCombinator<T>
Combinator for any number of values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <R> Arbitrary<R>
as(java.util.function.Function<java.util.List<T>,@NotNull R> combinator)
Combine any number of values.Combinators.ListCombinator<T>
filter(java.util.function.Predicate<java.util.List<T>> filter)
Filter list of values to only let them pass if the predicate is true.default <R> Arbitrary<R>
flatAs(java.util.function.Function<java.util.List<T>,Arbitrary<@NotNull R>> flatCombinator)
Combine list of values to create a new arbitrary.
-
-
-
Method Detail
-
as
<R> Arbitrary<R> as(java.util.function.Function<java.util.List<T>,@NotNull R> combinator)
Combine any number of values.- Type Parameters:
R
- return type- Parameters:
combinator
- function- Returns:
- arbitrary instance
-
filter
@API(status=EXPERIMENTAL, since="1.7.1") Combinators.ListCombinator<T> filter(java.util.function.Predicate<java.util.List<T>> filter)
Filter list of values to only let them pass if the predicate is true.- Parameters:
filter
- function- Returns:
- combinator instance
-
-