Package net.jqwik.api.state
Schnittstelle ChainArbitrary<T extends @Nullable Object>
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungimproveShrinkingWith
(Supplier<? extends ChangeDetector<? super T>> detectorSupplier) Set supplier for the type specific ChangeDetector which can make shrinking of chains more effective.default ChainArbitrary
<T> infinite()
Create a potentially infinite chain.withMaxTransformations
(int maxTransformations) Set the intended number of transformations of generated chains.withTransformation
(int weight, Transformation<T> transformation) Allow an additional Transformation on the generated chain.default ChainArbitrary
<T> withTransformation
(Transformation<T> transformation) Allow an additional Transformation with a default weight of 1.Von Schnittstelle geerbte Methoden net.jqwik.api.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
-
withTransformation
@API(status=EXPERIMENTAL, since="1.7.2") ChainArbitrary<T> withTransformation(int weight, Transformation<T> transformation) Allow an additional Transformation on the generated chain.- Parameter:
weight
- Determines the relative probability of a transformer to be chosen.transformation
- The provider to add.- Gibt zurück:
- new instance of arbitrary
-
withTransformation
@API(status=EXPERIMENTAL, since="1.7.0") default ChainArbitrary<T> withTransformation(Transformation<T> transformation) Allow an additional Transformation with a default weight of 1.- Parameter:
transformation
- The provider to add.- Gibt zurück:
- new instance of arbitrary
-
withMaxTransformations
Set the intended number of transformations of generated chains.Setting
maxTransformations
to-1
creates a potentially infinite chain. Such a chain will only end when a Transformer.endOfChain() is applied.- Gibt zurück:
- new instance of arbitrary
-
infinite
Create a potentially infinite chain. Such a chain will only end when a Transformer.endOfChain() is applied.- Gibt zurück:
- new instance of arbitrary
-
improveShrinkingWith
ChainArbitrary<T> improveShrinkingWith(Supplier<? extends ChangeDetector<? super T>> detectorSupplier) Set supplier for the type specific ChangeDetector which can make shrinking of chains more effective.- Parameter:
detectorSupplier
- A function to create a new ChangeDetector instance.- Gibt zurück:
- new instance of arbitrary
-