Class LocalDateTimeRangeRandomizer
java.lang.Object
io.github.krandom.randomizers.AbstractRandomizer<T>
io.github.krandom.randomizers.range.AbstractRangeRandomizer<LocalDateTime>
io.github.krandom.randomizers.range.LocalDateTimeRangeRandomizer
- All Implemented Interfaces:
Randomizer<LocalDateTime>
Generate a random
LocalDateTime
in the given range.-
Field Summary
Fields inherited from class io.github.krandom.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLocalDateTimeRangeRandomizer
.LocalDateTimeRangeRandomizer
(LocalDateTime min, LocalDateTime max, long seed) Create a newLocalDateTimeRangeRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected LocalDateTime
protected LocalDateTime
Generate a random value for the given type.Methods inherited from class io.github.krandom.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
LocalDateTimeRangeRandomizer
Create a newLocalDateTimeRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
LocalDateTimeRangeRandomizer
Create a newLocalDateTimeRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValues
in classAbstractRangeRandomizer<LocalDateTime>
-
getDefaultMinValue
- Specified by:
getDefaultMinValue
in classAbstractRangeRandomizer<LocalDateTime>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValue
in classAbstractRangeRandomizer<LocalDateTime>
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-