F
- The exact functional type to generateR
- The return type of the functional interface@API(status=MAINTAINED, since="1.3.0") public interface FunctionArbitrary<F,R> extends Arbitrary<F>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
<F_> FunctionArbitrary<F_,R> |
when(java.util.function.Predicate<java.util.List<java.lang.Object>> parameterCondition,
java.util.function.Function<java.util.List<java.lang.Object>,R> answer) |
allValues, array, asGeneric, collect, dontShrink, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, unique
<F_> FunctionArbitrary<F_,R> when(java.util.function.Predicate<java.util.List<java.lang.Object>> parameterCondition, java.util.function.Function<java.util.List<java.lang.Object>,R> answer)
F_
- The exact functional type to generate. Must be same as F
parameterCondition
- A predicate that's true when for the given list of parameters
answer
should be used to produce the function' resultanswer
- A function that produces a concrete answer or throws an exception