- Alle Superschnittstellen:
Arbitrary<Map<K,V>>, SizableArbitrary<Map<K, V>>
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen Arbitrary
Arbitrary.ArbitraryFacade -
Methodenübersicht
Modifikator und TypMethodeBeschreibungofMaxSize(int maxSize) Set upper size boundarymaxSize(included).ofMinSize(int minSize) Set lower size boundaryminSize(included).default MapArbitrary<K, V> ofSize(int size) Fix the size tosize.uniqueKeys(Function<K, Object> by) Add the constraint that keys of the generated map must be unique relating to an element's "feature" being extracted by applying thebyfunction on a map entry's key.Add the constraint that values of the generated map must be unique, i.e. no two value must return true when being compared using Object.equals(Object).uniqueValues(Function<V, Object> by) Add the constraint that value of the generated map must be unique relating to an element's "feature" being extracted by applying thebyfunction on a map entry's value.withSizeDistribution(RandomDistribution uniform) Set random distributiondistributionof size of generated map.Von Schnittstelle geerbte Methoden 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, withoutEdgeCases
-
Methodendetails
-
ofSize
Fix the size tosize.- Angegeben von:
ofSizein SchnittstelleSizableArbitrary<K extends @Nullable Object>- Parameter:
size- The size of the generated map- Gibt zurück:
- new arbitrary instance
-
ofMinSize
Set lower size boundaryminSize(included).- Angegeben von:
ofMinSizein SchnittstelleSizableArbitrary<K extends @Nullable Object>- Parameter:
minSize- The minimum size of the generated map- Gibt zurück:
- new arbitrary instance
-
ofMaxSize
Set upper size boundarymaxSize(included).- Angegeben von:
ofMaxSizein SchnittstelleSizableArbitrary<K extends @Nullable Object>- Parameter:
maxSize- The maximum size of the generated map- Gibt zurück:
- new arbitrary instance
-
withSizeDistribution
@API(status=EXPERIMENTAL, since="1.5.3") MapArbitrary<K,V> withSizeDistribution(RandomDistribution uniform) Set random distributiondistributionof size of generated map. The distribution's center is the minimum size of the generated map.- Angegeben von:
withSizeDistributionin SchnittstelleSizableArbitrary<K extends @Nullable Object>
-
uniqueKeys
Add the constraint that keys of the generated map must be unique relating to an element's "feature" being extracted by applying thebyfunction on a map entry's key. The extracted features are being compared using Object.equals(Object).The constraint can be combined with other uniqueKeys(Function) constraints.
- Gibt zurück:
- new arbitrary instance
-
uniqueValues
Add the constraint that value of the generated map must be unique relating to an element's "feature" being extracted by applying thebyfunction on a map entry's value. The extracted features are being compared using Object.equals(Object).The constraint can be combined with other uniqueValues(Function) constraints.
- Gibt zurück:
- new arbitrary instance
-
uniqueValues
Add the constraint that values of the generated map must be unique, i.e. no two value must return true when being compared using Object.equals(Object).The constraint can be combined with other uniqueValues(Function) constraints.
- Gibt zurück:
- new arbitrary instance
-