Package net.jqwik.api

Klasse Functions.FunctionWrapper

java.lang.Object
net.jqwik.api.Functions.FunctionWrapper
Umschließende Klasse:
Functions

public static class Functions.FunctionWrapper extends Object
Wraps a function to be generated.
  • Methodendetails

    • returning

      @API(status=MAINTAINED, since="1.6.0") public <F, R extends @Nullable Object> FunctionArbitrary<F,R> returning(Arbitrary<R> resultArbitrary)
      Create an arbitrary to create instances of functions represented by this wrapper. The generated functions are guaranteed to return the same result given the same input values. Shrinking will consider constant functions.
      Typparameter:
      F - The exact functional type to generate
      R - The return type of the functional interface
      Parameter:
      resultArbitrary - The arbitrary used to generate return values
      Gibt zurück:
      a new arbitrary instance