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>
public class YearMonthRangeRandomizer extends AbstractRangeRandomizer<java.time.YearMonth>
Generate a randomYearMonthin the given range.
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description YearMonthRangeRandomizer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValues()protected java.time.YearMonthgetDefaultMaxValue()protected java.time.YearMonthgetDefaultMinValue()java.time.YearMonthgetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
checkValues
protected void checkValues()
- Specified by:
checkValuesin classAbstractRangeRandomizer<java.time.YearMonth>
-
getDefaultMinValue
protected java.time.YearMonth getDefaultMinValue()
- Specified by:
getDefaultMinValuein classAbstractRangeRandomizer<java.time.YearMonth>
-
getDefaultMaxValue
protected java.time.YearMonth getDefaultMaxValue()
- Specified by:
getDefaultMaxValuein classAbstractRangeRandomizer<java.time.YearMonth>
-
getRandomValue
public java.time.YearMonth getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-