Class DefaultDateArbitrary
java.lang.Object
net.jqwik.api.arbitraries.ArbitraryDecorator<Date>
net.jqwik.time.internal.properties.arbitraries.DefaultDateArbitrary
- All Implemented Interfaces:
Cloneable,net.jqwik.api.Arbitrary<Date>,DateArbitrary
@API(status=INTERNAL)
public class DefaultDateArbitrary
extends net.jqwik.api.arbitraries.ArbitraryDecorator<Date>
implements DateArbitrary
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
net.jqwik.api.Arbitrary.ArbitraryFacade -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.jqwik.api.Arbitrary<Date>atTheEarliest(Date min) Set the allowed lowermin(included) bounder of generated date values.atTheLatest(Date max) Set the allowed uppermax(included) bounder of generated date values.static CalendardateToCalendar(Date date) dayOfMonthBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated day of month values.monthBetween(Month min, Month max) Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.onlyDaysOfWeek(DayOfWeek... daysOfWeek) Set an array of alloweddaysOfWeek.onlyMonths(Month... months) Set an array of allowedmonths.yearBetween(Year min, Year max) Set the allowed lowermin(included) and uppermax(included) bounder of generated year values.Methods inherited from class net.jqwik.api.arbitraries.ArbitraryDecorator
edgeCases, exhaustive, generator, generatorWithEmbeddedEdgeCases, isGeneratorMemoizable, toString, typedCloneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, withoutEdgeCasesMethods inherited from interface net.jqwik.time.api.arbitraries.DateArbitrary
between, monthBetween, yearBetween
-
Constructor Details
-
DefaultDateArbitrary
public DefaultDateArbitrary()
-
-
Method Details
-
arbitrary
- Specified by:
arbitraryin classnet.jqwik.api.arbitraries.ArbitraryDecorator<Date>
-
dateToCalendar
-
atTheEarliest
Description copied from interface:DateArbitrarySet the allowed lowermin(included) bounder of generated date values.- Specified by:
atTheEarliestin interfaceDateArbitrary
-
atTheLatest
Description copied from interface:DateArbitrarySet the allowed uppermax(included) bounder of generated date values.- Specified by:
atTheLatestin interfaceDateArbitrary
-
yearBetween
Description copied from interface:DateArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated year values. The years can be between1andYear.MAX_VALUE.Calling this method is equivalent to calling DateArbitrary.between(Date, Date) assuming Jan 1 and Dec 31 as first and last day of those years.
- Specified by:
yearBetweenin interfaceDateArbitrary
-
monthBetween
Description copied from interface:DateArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated month values.- Specified by:
monthBetweenin interfaceDateArbitrary
-
onlyMonths
Description copied from interface:DateArbitrarySet an array of allowedmonths.- Specified by:
onlyMonthsin interfaceDateArbitrary
-
dayOfMonthBetween
Description copied from interface:DateArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated day of month values. Theintvalues can be between 1 and 31.- Specified by:
dayOfMonthBetweenin interfaceDateArbitrary
-
onlyDaysOfWeek
Description copied from interface:DateArbitrarySet an array of alloweddaysOfWeek.- Specified by:
onlyDaysOfWeekin interfaceDateArbitrary
-