Class YearMonthRandomizer
java.lang.Object
org.jeasy.random.randomizers.time.YearMonthRandomizer
- All Implemented Interfaces:
Randomizer<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 TypeMethodDescriptionGenerate 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
Description copied from interface:Randomizer
Generate a random value for the given type.- Specified by:
getRandomValue
in interfaceRandomizer<YearMonth>
- Returns:
- a random value for the given type
-