@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> |
filter(java.util.function.Predicate<T> filterPredicate) |
default <U> RandomGenerator<U> |
flatMap(java.util.function.Function<T,Arbitrary<U>> mapper,
int genSize) |
default <U> RandomGenerator<U> |
flatMap(java.util.function.Function<T,RandomGenerator<U>> mapper) |
default RandomGenerator<T> |
ignoreException(java.lang.Class<? extends java.lang.Throwable> exceptionType) |
default RandomGenerator<T> |
injectDuplicates(double duplicateProbability) |
default RandomGenerator<T> |
injectNull(double nullProbability) |
default <U> RandomGenerator<U> |
map(java.util.function.Function<T,U> mapper) |
Shrinkable<T> |
next(java.util.Random random) |
default java.util.stream.Stream<Shrinkable<T>> |
stream(java.util.Random random) |
default RandomGenerator<T> |
unique() |
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> 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)
@API(status=INTERNAL) default RandomGenerator<T> filter(java.util.function.Predicate<T> filterPredicate)
@API(status=INTERNAL) default RandomGenerator<T> injectNull(double nullProbability)
@API(status=INTERNAL) default RandomGenerator<T> withEdgeCases(int genSize, EdgeCases<T> edgeCases)
@API(status=INTERNAL) default RandomGenerator<T> unique()
@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> ignoreException(java.lang.Class<? extends java.lang.Throwable> exceptionType)