public class YearMonthRandomizer extends Object implements Randomizer<java.time.YearMonth>
Randomizer
that generates random YearMonth
.Constructor and Description |
---|
YearMonthRandomizer()
Create a new
YearMonthRandomizer . |
YearMonthRandomizer(long seed)
Create a new
YearMonthRandomizer . |
Modifier and Type | Method and Description |
---|---|
static YearMonthRandomizer |
aNewYearMonthRandomizer()
Create a new
YearMonthRandomizer . |
static YearMonthRandomizer |
aNewYearMonthRandomizer(long seed)
Create a new
YearMonthRandomizer . |
java.time.YearMonth |
getRandomValue()
Generate a random value for the given type.
|
public YearMonthRandomizer()
YearMonthRandomizer
.public YearMonthRandomizer(long seed)
YearMonthRandomizer
.seed
- initial seedpublic static YearMonthRandomizer aNewYearMonthRandomizer()
YearMonthRandomizer
.YearMonthRandomizer
.public static YearMonthRandomizer aNewYearMonthRandomizer(long seed)
YearMonthRandomizer
.seed
- initial seedYearMonthRandomizer
.public java.time.YearMonth getRandomValue()
Randomizer
getRandomValue
in interface Randomizer<java.time.YearMonth>
Copyright © 2017. All Rights Reserved.