@API(status=STABLE,
since="1.0")
public interface RandomGenerator<T>
Modifier and Type | Interface and Description |
---|---|
static class |
RandomGenerator.RandomGeneratorFacade |
Modifier and Type | Method and Description |
---|---|
default RandomGenerator<java.util.List<T>> |
collect(java.util.function.Predicate<java.util.List<T>> until) |
default RandomGenerator<T> |
dontShrink() |
default RandomGenerator<T> |
filter(java.util.function.Predicate<T> filterPredicate,
int maxMisses) |
default <U> RandomGenerator<U> |
flatMap(java.util.function.Function<T,Arbitrary<U>> mapper,
int genSize,
boolean withEmbeddedEdgeCases) |
default <U> RandomGenerator<U> |
flatMap(java.util.function.Function<T,RandomGenerator<U>> mapper) |
default RandomGenerator<T> |
ignoreExceptions(int maxThrows,
java.lang.Class<? extends java.lang.Throwable>[] exceptionTypes) |
default RandomGenerator<T> |
injectDuplicates(double duplicateProbability) |
default <U> RandomGenerator<U> |
map(java.util.function.Function<T,U> mapper) |
default <U> RandomGenerator<U> |
mapShrinkable(java.util.function.Function<Shrinkable<T>,Shrinkable<U>> mapper) |
Shrinkable<T> |
next(java.util.Random random) |
default java.util.stream.Stream<Shrinkable<T>> |
stream(java.util.Random random) |
default RandomGenerator<T> |
withEdgeCases(int genSize,
EdgeCases<T> edgeCases) |
Shrinkable<T> next(java.util.Random random)
random
- the source of randomness. Injected by jqwik itself.@API(status=INTERNAL) default <U> RandomGenerator<U> map(java.util.function.Function<T,U> mapper)
@API(status=INTERNAL) default <U> RandomGenerator<U> mapShrinkable(java.util.function.Function<Shrinkable<T>,Shrinkable<U>> mapper)
@API(status=INTERNAL) default <U> RandomGenerator<U> flatMap(java.util.function.Function<T,RandomGenerator<U>> mapper)
@API(status=INTERNAL) default <U> RandomGenerator<U> flatMap(java.util.function.Function<T,Arbitrary<U>> mapper, int genSize, boolean withEmbeddedEdgeCases)
@API(status=INTERNAL) default RandomGenerator<T> filter(java.util.function.Predicate<T> filterPredicate, int maxMisses)
@API(status=INTERNAL) default RandomGenerator<T> withEdgeCases(int genSize, EdgeCases<T> edgeCases)
@API(status=INTERNAL) default java.util.stream.Stream<Shrinkable<T>> stream(java.util.Random random)
@API(status=INTERNAL) default RandomGenerator<java.util.List<T>> collect(java.util.function.Predicate<java.util.List<T>> until)
@API(status=INTERNAL) default RandomGenerator<T> injectDuplicates(double duplicateProbability)
@API(status=INTERNAL) default RandomGenerator<T> ignoreExceptions(int maxThrows, java.lang.Class<? extends java.lang.Throwable>[] exceptionTypes)
@API(status=INTERNAL) default RandomGenerator<T> dontShrink()