Package net.jqwik.api

Interface Combinators.Combinator3<T1,T2,T3>

Enclosing class:
Combinators

public static interface Combinators.Combinator3<@Nullable T1,@Nullable T2,@Nullable T3>
Combinator for three values.
  • Method Details

    • as

      <@Nullable R> Arbitrary<R> as(Combinators.F3<@Nullable T1,@Nullable T2,@Nullable T3,@Nullable R> combinator)
      Combine three values.
      Type Parameters:
      R - return type
      Parameters:
      combinator - function
      Returns:
      arbitrary instance
    • filter

      @API(status=MAINTAINED, since="1.8.0") Combinators.Combinator3<T1,T2,T3> filter(Combinators.F3<@Nullable T1,@Nullable T2,@Nullable T3,Boolean> filter)
      Filter three values to only let them pass if the predicate is true.
      Parameters:
      filter - function
      Returns:
      combinator instance
    • flatAs

      default <@Nullable R> Arbitrary<R> flatAs(Combinators.F3<@Nullable T1,@Nullable T2,@Nullable T3,Arbitrary<@Nullable R>> flatCombinator)
      Combine three values to create a new arbitrary.
      Type Parameters:
      R - return type of arbitrary
      Parameters:
      flatCombinator - function
      Returns:
      arbitrary instance