Package net.jqwik.api.arbitraries
Interface SizableArbitrary<U>
-
- All Superinterfaces:
Arbitrary<U>
- All Known Subinterfaces:
ActionSequenceArbitrary<M>
,ArrayArbitrary<T,A>
,IteratorArbitrary<T>
,ListArbitrary<T>
,MapArbitrary<K,V>
,SetArbitrary<T>
,StreamableArbitrary<T,U>
,StreamArbitrary<T>
@API(status=MAINTAINED, since="1.0") public interface SizableArbitrary<U> extends Arbitrary<U>
Fluent interface to configure arbitraries that have size constraints for generated values, e.g. collections and arrays.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SizableArbitrary<U>
ofMaxSize(int maxSize)
Set upper size boundarymaxSize
(included).SizableArbitrary<U>
ofMinSize(int minSize)
Set lower size boundaryminSize
(included).default SizableArbitrary<U>
ofSize(int size)
Fix the size tosize
.-
Methods inherited from interface net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
-
-
-
Method Detail
-
ofSize
default SizableArbitrary<U> ofSize(int size)
Fix the size tosize
.
-
ofMinSize
SizableArbitrary<U> ofMinSize(int minSize)
Set lower size boundaryminSize
(included).
-
ofMaxSize
SizableArbitrary<U> ofMaxSize(int maxSize)
Set upper size boundarymaxSize
(included).
-
-