Schnittstelle DurationArbitrary

Alle Superschnittstellen:
net.jqwik.api.Arbitrary<Duration>
Alle bekannten Implementierungsklassen:
DefaultDurationArbitrary

@API(status=EXPERIMENTAL, since="1.5.1") public interface DurationArbitrary extends net.jqwik.api.Arbitrary<Duration>
Fluent interface to configure the generation of duration values.
  • Verschachtelte Klassen - Übersicht

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.Arbitrary

    net.jqwik.api.Arbitrary.ArbitraryFacade
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Set the allowed lower min (included) and upper max (included) bounder of generated duration.
    ofPrecision(ChronoUnit ofPrecision)
    Constrain the precision of generated values.

    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

    • between

      DurationArbitrary between(Duration min, Duration max)
      Set the allowed lower min (included) and upper max (included) bounder of generated duration. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
    • ofPrecision

      DurationArbitrary ofPrecision(ChronoUnit ofPrecision)
      Constrain the precision of generated values. Default value: Seconds. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.