Package net.jqwik.api
Interface Combinators.ListCombinator<T extends @Nullable Object>
- Enclosing class:
- Combinators
public static interface Combinators.ListCombinator<T extends @Nullable Object>
Combinator for any number of values.
-
Method Summary
Modifier and TypeMethodDescriptionCombine any number of values.Filter list of values to only let them pass if the predicate is true.Combine list of values to create a new arbitrary.
-
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<? super List<? extends T>> filter) Filter list of values to only let them pass if the predicate is true.- Parameters:
filter
- function- Returns:
- combinator instance
-
flatAs
default <R extends @Nullable Object> Arbitrary<R> flatAs(Function<? super List<? extends T>, ? extends Arbitrary<R>> flatCombinator) Combine list of values to create a new arbitrary.- Type Parameters:
R
- return type of arbitrary- Parameters:
flatCombinator
- function- Returns:
- arbitrary instance
-