Class DateRangeRandomizer
java.lang.Object
io.github.krandom.randomizers.AbstractRandomizer<T>
io.github.krandom.randomizers.range.AbstractRangeRandomizer<Date>
io.github.krandom.randomizers.range.DateRangeRandomizer
- All Implemented Interfaces:
Randomizer<Date>
Generate a random
Date
in the given range.-
Field Summary
Fields inherited from class io.github.krandom.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionDateRangeRandomizer
(Date min, Date max) Create a newDateRangeRandomizer
.DateRangeRandomizer
(Date min, Date max, long seed) Create a newDateRangeRandomizer
. -
Method Summary
Methods inherited from class io.github.krandom.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
DateRangeRandomizer
Create a newDateRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
DateRangeRandomizer
Create a newDateRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValues
in classAbstractRangeRandomizer<Date>
-
getDefaultMinValue
- Specified by:
getDefaultMinValue
in classAbstractRangeRandomizer<Date>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValue
in classAbstractRangeRandomizer<Date>
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-