Package net.jqwik.api
Interface Combinators.ListCombinator<T>
- Enclosing class:
- Combinators
public static interface Combinators.ListCombinator<@Nullable T>
Combinator for any number of values.
-
Method Details
-
as
Combine any number of values.- Type Parameters:
R
- return type- Parameters:
combinator
- function- Returns:
- arbitrary instance
-
filter
@API(status=MAINTAINED, since="1.8.0") Combinators.ListCombinator<T> filter(Predicate<List<@Nullable T>> filter) Filter list of values to only let them pass if the predicate is true.- Parameters:
filter
- function- Returns:
- combinator instance
-
flatAs
default <@Nullable R> Arbitrary<R> flatAs(Function<List<@Nullable T>, Arbitrary<@Nullable R>> flatCombinator) Combine list of values to create a new arbitrary.- Type Parameters:
R
- return type of arbitrary- Parameters:
flatCombinator
- function- Returns:
- arbitrary instance
-