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