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 voidprotected java.time.YearMonthprotected java.time.YearMonthjava.time.YearMonthGenerate 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:
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
-