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