Class LocalDateTimeRangeRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class LocalDateTimeRangeRandomizer extends AbstractRangeRandomizer<T>
Generate a random LocalDateTime in the given range.
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimeRangeRandomizer(LocalDateTime min, LocalDateTime max)
Create a new LocalDateTimeRangeRandomizer. LocalDateTimeRangeRandomizer(LocalDateTime min, LocalDateTime max, long seed)
Create a new LocalDateTimeRangeRandomizer.
-
Method Summary
Modifier and Type Method Description LocalDateTime
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
LocalDateTimeRangeRandomizer
LocalDateTimeRangeRandomizer(LocalDateTime min, LocalDateTime max)
Create a new LocalDateTimeRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
LocalDateTimeRangeRandomizer
LocalDateTimeRangeRandomizer(LocalDateTime min, LocalDateTime max, long seed)
Create a new LocalDateTimeRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Detail
-
getRandomValue
LocalDateTime getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-