Class YearMonthRandomizer
java.lang.Object
org.jeasy.random.randomizers.time.YearMonthRandomizer
- All Implemented Interfaces:
Randomizer<java.time.YearMonth>
A
Randomizer that generates random YearMonth.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newYearMonthRandomizer.YearMonthRandomizer(long seed) Create a newYearMonthRandomizer. -
Method Summary
Modifier and TypeMethodDescriptionjava.time.YearMonthGenerate a random value for the given type.
-
Constructor Details
-
YearMonthRandomizer
public YearMonthRandomizer()Create a newYearMonthRandomizer. -
YearMonthRandomizer
public YearMonthRandomizer(long seed) Create a newYearMonthRandomizer.- Parameters:
seed- initial seed
-
-
Method Details
-
getRandomValue
public java.time.YearMonth getRandomValue()Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.time.YearMonth>- Returns:
- a random value for the given type
-