Package net.jqwik.api

Interface Combinators.ListCombinator<T>

  • Enclosing class:
    Combinators

    public static interface Combinators.ListCombinator<T>
    Combinator for any number of values.
    • 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
      • flatAs

        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.
        Type Parameters:
        R - return type of arbitrary
        Parameters:
        flatCombinator - function
        Returns:
        arbitrary instance