@API(status=MAINTAINED,
since="1.0")
public interface SizableArbitrary<U>
extends Arbitrary<U>
Arbitrary.ArbitraryFacade| Modifier and Type | Method and Description |
|---|---|
SizableArbitrary<U> |
ofMaxSize(int maxSize)
Set upper size boundary
maxSize (included). |
SizableArbitrary<U> |
ofMinSize(int minSize)
Set lower size boundary
minSize (included). |
default SizableArbitrary<U> |
ofSize(int size)
Fix the size to
size. |
SizableArbitrary<U> |
withSizeDistribution(RandomDistribution distribution)
Set distribution
distribution of size of generated arbitrary |
allValues, 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, withoutEdgeCasesdefault SizableArbitrary<U> ofSize(int size)
size.SizableArbitrary<U> ofMinSize(int minSize)
minSize (included).SizableArbitrary<U> ofMaxSize(int maxSize)
maxSize (included).@API(status=EXPERIMENTAL,
since="1.5.3")
SizableArbitrary<U> withSizeDistribution(RandomDistribution distribution)
distribution of size of generated arbitrary