Class YearMonthRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.time.YearMonthRandomizer
-
- All Implemented Interfaces:
Randomizer<java.time.YearMonth>
public class YearMonthRandomizer extends java.lang.Object implements Randomizer<java.time.YearMonth>
ARandomizerthat generates randomYearMonth.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description YearMonthRandomizer()Create a newYearMonthRandomizer.YearMonthRandomizer(long seed)Create a newYearMonthRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.YearMonthgetRandomValue()Generate a random value for the given type.
-
-
-
Constructor Detail
-
YearMonthRandomizer
public YearMonthRandomizer()
Create a newYearMonthRandomizer.
-
YearMonthRandomizer
public YearMonthRandomizer(long seed)
Create a newYearMonthRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
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
-
-