Interface YearMonthArbitrary

All Superinterfaces:
net.jqwik.api.Arbitrary<YearMonth>
All Known Implementing Classes:
DefaultYearMonthArbitrary

@API(status=EXPERIMENTAL, since="1.4.0") public interface YearMonthArbitrary extends net.jqwik.api.Arbitrary<YearMonth>
Fluent interface to configure the generation of year and month values. By default, year and months with years between 1900 and 2500 are generated.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary

    net.jqwik.api.Arbitrary.ArbitraryFacade
  • Method Summary

    Modifier and Type
    Method
    Description
    Set the allowed lower min (included) bounder of generated year and month values.
    Set the allowed upper max (included) bounder of generated year and month values.
    Set the allowed lower min (included) and upper max (included) bounder of generated year and month values.
    monthBetween(int min, int max)
    Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    onlyMonths(Month... months)
    Set an array of allowed months.
    yearBetween(int min, int max)
    Set the allowed lower min (included) and upper max (included) bounder of generated year values.
    yearBetween(Year min, Year max)
    Set the allowed lower min (included) and upper max (included) bounder of generated year values.

    Methods inherited from interface 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
  • Method Details

    • between

      default YearMonthArbitrary between(YearMonth min, YearMonth max)
      Set the allowed lower min (included) and upper max (included) bounder of generated year and month values.
    • atTheEarliest

      YearMonthArbitrary atTheEarliest(YearMonth min)
      Set the allowed lower min (included) bounder of generated year and month values.
    • atTheLatest

      YearMonthArbitrary atTheLatest(YearMonth max)
      Set the allowed upper max (included) bounder of generated year and month values.
    • yearBetween

      YearMonthArbitrary yearBetween(Year min, Year max)
      Set the allowed lower min (included) and upper max (included) bounder of generated year values. The values can be between 1 and Year.MAX_VALUE.
    • yearBetween

      default YearMonthArbitrary yearBetween(int min, int max)
      Set the allowed lower min (included) and upper max (included) bounder of generated year values. The int values can be between 1 and Year.MAX_VALUE.
    • monthBetween

      YearMonthArbitrary monthBetween(Month min, Month max)
      Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    • monthBetween

      default YearMonthArbitrary monthBetween(int min, int max)
      Set the allowed lower min (included) and upper max (included) bounder of generated month values. The int values can be between 1 and 12.
    • onlyMonths

      YearMonthArbitrary onlyMonths(Month... months)
      Set an array of allowed months.