@API(status=INTERNAL)
public abstract static class RandomGenerator.RandomGeneratorFacade
extends java.lang.Object
Constructor and Description |
---|
RandomGeneratorFacade() |
Modifier and Type | Method and Description |
---|---|
abstract <T> RandomGenerator<java.util.List<T>> |
collect(RandomGenerator<T> self,
java.util.function.Predicate<java.util.List<T>> until) |
abstract <T> RandomGenerator<T> |
filter(RandomGenerator<T> self,
java.util.function.Predicate<T> filterPredicate,
int maxMisses) |
abstract <T,U> Shrinkable<U> |
flatMap(Shrinkable<T> wrappedShrinkable,
java.util.function.Function<T,Arbitrary<U>> mapper,
int genSize,
long nextLong,
boolean withEmbeddedEdgeCases) |
abstract <T,U> Shrinkable<U> |
flatMap(Shrinkable<T> self,
java.util.function.Function<T,RandomGenerator<U>> mapper,
long nextLong) |
abstract <T> RandomGenerator<T> |
ignoreExceptions(RandomGenerator<T> self,
java.lang.Class<? extends java.lang.Throwable>[] exceptionTypes,
int maxThrows) |
abstract <T> RandomGenerator<T> |
injectDuplicates(RandomGenerator<T> self,
double duplicateProbability) |
abstract <T> RandomGenerator<T> |
withEdgeCases(RandomGenerator<T> self,
int genSize,
EdgeCases<T> edgeCases) |
public abstract <T,U> Shrinkable<U> flatMap(Shrinkable<T> self, java.util.function.Function<T,RandomGenerator<U>> mapper, long nextLong)
public abstract <T,U> Shrinkable<U> flatMap(Shrinkable<T> wrappedShrinkable, java.util.function.Function<T,Arbitrary<U>> mapper, int genSize, long nextLong, boolean withEmbeddedEdgeCases)
public abstract <T> RandomGenerator<T> filter(RandomGenerator<T> self, java.util.function.Predicate<T> filterPredicate, int maxMisses)
public abstract <T> RandomGenerator<T> withEdgeCases(RandomGenerator<T> self, int genSize, EdgeCases<T> edgeCases)
public abstract <T> RandomGenerator<java.util.List<T>> collect(RandomGenerator<T> self, java.util.function.Predicate<java.util.List<T>> until)
public abstract <T> RandomGenerator<T> injectDuplicates(RandomGenerator<T> self, double duplicateProbability)
public abstract <T> RandomGenerator<T> ignoreExceptions(RandomGenerator<T> self, java.lang.Class<? extends java.lang.Throwable>[] exceptionTypes, int maxThrows)