@FunctionalInterface public static interface ArbitraryProvider.SubtypeProvider extends java.util.function.Function<TypeUsage,java.util.Set<Arbitrary<?>>>
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<Arbitrary<?>> |
provideOneFor(TypeUsage typeUsage)
Convenience method to combine set of arbitraries in optional choice-based arbitrary.
|
default java.util.stream.Stream<java.util.List<Arbitrary<?>>> |
resolveAndCombine(TypeUsage... typeUsages)
Resolve all typeUsages and return a stream of all possible arbitraries
combinations per type.
|
@API(status=MAINTAINED, since="1.2.0") default java.util.stream.Stream<java.util.List<Arbitrary<?>>> resolveAndCombine(TypeUsage... typeUsages)
typeUsages
-