Schnittstelle NumericalArbitrary<T, A extends NumericalArbitrary<T,A> >
- Alle Superschnittstellen:
Arbitrary<T>
- Alle bekannten Unterschnittstellen:
BigDecimalArbitrary, BigIntegerArbitrary, ByteArbitrary, DoubleArbitrary, FloatArbitrary, IntegerArbitrary, LongArbitrary, ShortArbitrary
@API(status=MAINTAINED,
since="1.8.0")
public interface NumericalArbitrary<T, A extends NumericalArbitrary<T,A>>
extends Arbitrary<T>
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen Arbitrary
Arbitrary.ArbitraryFacade -
Methodenübersicht
Modifikator und TypMethodeBeschreibungwithDistribution(RandomDistribution distribution) Set the distribution to use when generating random numerical values.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
-
withDistribution
Set the distribution to use when generating random numerical values.jqwik currently offers two built-in distributions:
- RandomDistribution.biased() is the default
- RandomDistribution.uniform() creates a uniform probability distribution
- Parameter:
distribution- The distribution to use when generating random values- Gibt zurück:
- a random distribution instance
-