Package net.jqwik.api
Class Arbitrary.ArbitraryFacade
- java.lang.Object
-
- net.jqwik.api.Arbitrary.ArbitraryFacade
-
-
Constructor Summary
Constructors Constructor Description ArbitraryFacade()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <T,A>
StreamableArbitrary<T,A>array(Arbitrary<T> elementArbitrary, java.lang.Class<A> arrayClass)
abstract <T,U>
java.util.Optional<ExhaustiveGenerator<U>>flatMapExhaustiveGenerator(ExhaustiveGenerator<T> self, java.util.function.Function<T,Arbitrary<U>> mapper, long maxNumberOfSamples)
abstract <T> Arbitrary<T>
injectNull(Arbitrary<T> self, double nullProbability)
abstract <T> IteratorArbitrary<T>
iterator(Arbitrary<T> elementArbitrary)
abstract <T> ListArbitrary<T>
list(Arbitrary<T> elementArbitrary)
abstract <T> java.util.stream.Stream<T>
sampleStream(Arbitrary<T> arbitrary)
abstract <T> SetArbitrary<T>
set(Arbitrary<T> elementArbitrary)
abstract <T> StreamArbitrary<T>
stream(Arbitrary<T> elementArbitrary)
-
-
-
Method Detail
-
flatMapExhaustiveGenerator
public abstract <T,U> java.util.Optional<ExhaustiveGenerator<U>> flatMapExhaustiveGenerator(ExhaustiveGenerator<T> self, java.util.function.Function<T,Arbitrary<U>> mapper, long maxNumberOfSamples)
-
list
public abstract <T> ListArbitrary<T> list(Arbitrary<T> elementArbitrary)
-
set
public abstract <T> SetArbitrary<T> set(Arbitrary<T> elementArbitrary)
-
stream
public abstract <T> StreamArbitrary<T> stream(Arbitrary<T> elementArbitrary)
-
iterator
public abstract <T> IteratorArbitrary<T> iterator(Arbitrary<T> elementArbitrary)
-
array
public abstract <T,A> StreamableArbitrary<T,A> array(Arbitrary<T> elementArbitrary, java.lang.Class<A> arrayClass)
-
sampleStream
public abstract <T> java.util.stream.Stream<T> sampleStream(Arbitrary<T> arbitrary)
-
-