Package net.jqwik.api

Interface Combinators.ListCombinator<T>

Enclosing class:
Combinators

public static interface Combinators.ListCombinator<T>
Combinator for any number of values.
  • Method Details

    • as

      <R> Arbitrary<R> as(Function<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(Predicate<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(Function<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