@API(status=MAINTAINED, since="1.3.2") public interface MapArbitrary<K,V> extends SizableArbitrary<java.util.Map<K,V>>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
MapArbitrary<K,V> |
ofMaxSize(int maxSize)
Set upper size boundary
maxSize (included). |
MapArbitrary<K,V> |
ofMinSize(int minSize)
Set lower size boundary
minSize (included). |
default MapArbitrary<K,V> |
ofSize(int size)
Fix the size to
size . |
allValues, array, asGeneric, collect, dontShrink, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, unique
default MapArbitrary<K,V> ofSize(int size)
size
.ofSize
in interface SizableArbitrary<java.util.Map<K,V>>
size
- The size of the generated mapMapArbitrary<K,V> ofMinSize(int minSize)
minSize
(included).ofMinSize
in interface SizableArbitrary<java.util.Map<K,V>>
minSize
- The minimum size of the generated mapMapArbitrary<K,V> ofMaxSize(int maxSize)
maxSize
(included).ofMaxSize
in interface SizableArbitrary<java.util.Map<K,V>>
maxSize
- The maximum size of the generated map