Package net.jqwik.api.arbitraries
Schnittstelle FloatArbitrary
- Alle Superschnittstellen:
Arbitrary<Float>
,NumericalArbitrary<Float,
FloatArbitrary>
@API(status=MAINTAINED,
since="1.0")
public interface FloatArbitrary
extends NumericalArbitrary<Float,FloatArbitrary>
Fluent interface to configure the generation of Float and float values.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbetween
(float min, boolean minIncluded, float max, boolean maxIncluded) Set the allowed lowermin
(included) and uppermax
(included) border of generated numbers.default FloatArbitrary
between
(float min, float max) Set the allowed lowermin
(included) and uppermax
(included) border of generated numbers.greaterOrEqual
(float min) Set the allowed lowermin
(included) border of generated numbers.greaterThan
(float min) Set the allowed lowermin
(excluded) border of generated numbers.lessOrEqual
(float max) Set the allowed uppermax
(included) border of generated numbers.lessThan
(float max) Set the allowed uppermax
(excluded) border of generated numbers.ofScale
(int scale) Set the scale (maximum number of decimal places) toscale
.shrinkTowards
(float target) Set shrinking target totarget
which must be between the allowed bounds.withSpecialValue
(float special) Inject a special value into generated values and edge cases.Inject a selection of special values using withSpecialValue(float): Float.NaN Float.MIN_VALUE Float.MIN_NORMAL Float.POSITIVE_INFINITY Float.NEGATIVE_INFINITY This value can be outside the constraints of the arbitrary, e.g. have more decimals than specified by ofScale(int).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
Von Schnittstelle geerbte Methoden net.jqwik.api.arbitraries.NumericalArbitrary
withDistribution
-
Methodendetails
-
between
Set the allowed lowermin
(included) and uppermax
(included) border of generated numbers.- Parameter:
min
- The lower border of possible valuesmax
- The upper border of possible values
-
between
Set the allowed lowermin
(included) and uppermax
(included) border of generated numbers. Specify if borders should be included in allowed values or not.- Parameter:
min
- The lower border of possible valuesminIncluded
- Should the lower border be includedmax
- The upper border of possible valuesmaxIncluded
- Should the upper border be included
-
greaterOrEqual
Set the allowed lowermin
(included) border of generated numbers.- Parameter:
min
- The lower border of possible values
-
greaterThan
Set the allowed lowermin
(excluded) border of generated numbers.- Parameter:
min
- The lower border of possible values
-
lessOrEqual
Set the allowed uppermax
(included) border of generated numbers.- Parameter:
max
- The upper border of possible values
-
lessThan
Set the allowed uppermax
(excluded) border of generated numbers.- Parameter:
max
- The upper border of possible values
-
ofScale
Set the scale (maximum number of decimal places) toscale
. -
shrinkTowards
Set shrinking target totarget
which must be between the allowed bounds. -
withSpecialValue
Inject a special value into generated values and edge cases. This value can be outside the constraints of the arbitrary, e.g. have more decimals than specified by ofScale(int).- Parameter:
special
- value- Gibt zurück:
- new instance of arbitrary
-
withStandardSpecialValues
Inject a selection of special values using withSpecialValue(float): This value can be outside the constraints of the arbitrary, e.g. have more decimals than specified by ofScale(int).- Gibt zurück:
- new instance of arbitrary
-