Package net.jqwik.api

Schnittstelle Combinators.Combinator2<T1 extends @Nullable Object,T2 extends @Nullable Object>

Umschließende Klasse:
Combinators

public static interface Combinators.Combinator2<T1 extends @Nullable Object,T2 extends @Nullable Object>
Combinator for two values.
  • Methodendetails

    • as

      <R extends @Nullable Object> Arbitrary<R> as(Combinators.F2<? super T1,? super T2,? extends R> combinator)
      Combine two values.
      Typparameter:
      R - return type
      Parameter:
      combinator - function
      Gibt zurück:
      arbitrary instance
    • filter

      @API(status=MAINTAINED, since="1.8.0") Combinators.Combinator2<T1,T2> filter(Combinators.F2<? super T1,? super T2,Boolean> filter)
      Filter two values to only let them pass if the predicate is true.
      Parameter:
      filter - function
      Gibt zurück:
      combinator instance
    • flatAs

      default <R extends @Nullable Object> Arbitrary<R> flatAs(Combinators.F2<? super T1,? super T2,? extends Arbitrary<R>> flatCombinator)
      Combine two values to create a new arbitrary.
      Typparameter:
      R - return type of arbitrary
      Parameter:
      flatCombinator - function
      Gibt zurück:
      arbitrary instance