Package net.jqwik.api
Class Arbitrary.ArbitraryFacade
java.lang.Object
net.jqwik.api.Arbitrary.ArbitraryFacade
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends @Nullable Object,
A>
ArrayArbitrary<T,A> configureEdgeCases
(Arbitrary<T> self, Consumer<? super EdgeCases.Config<T>> configurator) dontShrink
(Arbitrary<T> self) fixGenSize
(Arbitrary<T> self, int genSize) ignoreExceptions
(Arbitrary<T> self, int maxThrows, Class<? extends Throwable>[] exceptionTypes) injectNull
(Arbitrary<T> self, double nullProbability) abstract <T extends @Nullable Object>
IteratorArbitrary<T>abstract <T extends @Nullable Object>
ListArbitrary<T>abstract <T extends @Nullable Object>
RandomGenerator<T>memoizedGenerator
(Arbitrary<T> self, int genSize, boolean withEdgeCases) sampleStream
(Arbitrary<T> arbitrary) abstract <T extends @Nullable Object>
SetArbitrary<T>abstract <T extends @Nullable Object>
StreamArbitrary<T>withoutEdgeCases
(Arbitrary<T> self)
-
Constructor Details
-
ArbitraryFacade
public ArbitraryFacade()
-
-
Method Details
-
list
-
set
-
stream
public abstract <T extends @Nullable Object> StreamArbitrary<T> stream(Arbitrary<T> elementArbitrary) -
iterator
public abstract <T extends @Nullable Object> IteratorArbitrary<T> iterator(Arbitrary<T> elementArbitrary) -
array
public abstract <T extends @Nullable Object,A> ArrayArbitrary<T,A> array(Arbitrary<T> elementArbitrary, Class<A> arrayClass) -
sampleStream
-
injectNull
-
filter
-
map
-
flatMap
-
ignoreExceptions
-
dontShrink
-
configureEdgeCases
public abstract <T extends @Nullable Object> Arbitrary<T> configureEdgeCases(Arbitrary<T> self, Consumer<? super EdgeCases.Config<T>> configurator) -
withoutEdgeCases
-
memoizedGenerator
public abstract <T extends @Nullable Object> RandomGenerator<T> memoizedGenerator(Arbitrary<T> self, int genSize, boolean withEdgeCases) -
fixGenSize
-
collect
-