Class LocalDateTimeRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class LocalDateTimeRandomizer implements Randomizer<T>
A Randomizer that generates random LocalDateTime.
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimeRandomizer()
Create a new LocalDateTimeRandomizer. LocalDateTimeRandomizer(long seed)
Create a new LocalDateTimeRandomizer.
-
Method Summary
Modifier and Type Method Description LocalDateTime
getRandomValue()
Generate a random value for the given type. void
setLocalDateRandomizer(LocalDateRandomizer localDateRandomizer)
void
setLocalTimeRandomizer(LocalTimeRandomizer localTimeRandomizer)
-
-
Constructor Detail
-
LocalDateTimeRandomizer
LocalDateTimeRandomizer()
Create a new LocalDateTimeRandomizer.
-
LocalDateTimeRandomizer
LocalDateTimeRandomizer(long seed)
Create a new LocalDateTimeRandomizer.- Parameters:
seed
- initial seed
-
-
Method Detail
-
getRandomValue
LocalDateTime getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
setLocalDateRandomizer
void setLocalDateRandomizer(LocalDateRandomizer localDateRandomizer)
-
setLocalTimeRandomizer
void setLocalTimeRandomizer(LocalTimeRandomizer localTimeRandomizer)
-
-
-
-