Package net.jqwik.api.arbitraries
Interface SizableArbitrary<U>
- All Superinterfaces:
- Arbitrary<U>
- All Known Subinterfaces:
- ArrayArbitrary<T,,- A> - IteratorArbitrary<T>,- ListArbitrary<T>,- MapArbitrary<K,,- V> - SetArbitrary<T>,- StreamableArbitrary<T,,- U> - StreamArbitrary<T>
Fluent interface to configure arbitraries that have size constraints for generated values, e.g. collections and arrays.
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.jqwik.api.ArbitraryArbitrary.ArbitraryFacade
- 
Method SummaryModifier and TypeMethodDescriptionofMaxSize(int maxSize) Set upper size boundarymaxSize(included).ofMinSize(int minSize) Set lower size boundaryminSize(included).default SizableArbitrary<U>ofSize(int size) Fix the size tosize.withSizeDistribution(RandomDistribution distribution) Set distributiondistributionof size of generated arbitraryMethods inherited from interface net.jqwik.api.ArbitraryallValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
- 
Method Details- 
ofSizeFix the size tosize.
- 
ofMinSizeSet lower size boundaryminSize(included).
- 
ofMaxSizeSet upper size boundarymaxSize(included).
- 
withSizeDistribution@API(status=EXPERIMENTAL, since="1.5.3") SizableArbitrary<U> withSizeDistribution(RandomDistribution distribution) Set distributiondistributionof size of generated arbitrary
 
-