@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) |
abstract <T,U> Shrinkable<U> |
flatMap(Shrinkable<T> wrappedShrinkable,
java.util.function.Function<T,Arbitrary<U>> mapper,
int genSize,
long nextLong) |
abstract <T,U> Shrinkable<U> |
flatMap(Shrinkable<T> self,
java.util.function.Function<T,RandomGenerator<U>> mapper,
long nextLong) |
abstract <T> RandomGenerator<T> |
injectDuplicates(RandomGenerator<T> self,
double duplicateProbability) |
abstract <T> RandomGenerator<T> |
unique(RandomGenerator<T> self) |
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)
public abstract <T> RandomGenerator<T> filter(RandomGenerator<T> self, java.util.function.Predicate<T> filterPredicate)
public abstract <T> RandomGenerator<T> withEdgeCases(RandomGenerator<T> self, int genSize, EdgeCases<T> edgeCases)
public abstract <T> RandomGenerator<T> unique(RandomGenerator<T> self)
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)