Schnittstelle FunctionArbitrary<F,R extends @Nullable Object>

Typparameter:
F - The exact functional type to generate
R - The return type of the functional interface
Alle Superschnittstellen:
Arbitrary<F>

@API(status=MAINTAINED, since="1.3.0") public interface FunctionArbitrary<F,R extends @Nullable Object> extends Arbitrary<F>
Fluent interface to configure arbitraries that represent functional types
  • Methodendetails

    • when

      <F_ extends F> FunctionArbitrary<F_,R> when(Predicate<? super List<?>> parameterCondition, Function<? super List<?>,? extends R> answer)
      Typparameter:
      F_ - The exact functional type to generate. Must be same as F
      Parameter:
      parameterCondition - A predicate that's true when for the given list of parameters answer should be used to produce the function' result
      answer - A function that produces a concrete answer or throws an exception
      Gibt zurück:
      A new instance of function arbitrary