Class LocalDateTimeRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<LocalDateTime>
org.jeasy.random.randomizers.range.LocalDateTimeRangeRandomizer
- All Implemented Interfaces:
Randomizer<LocalDateTime>
Generate a random
LocalDateTime
in the given range.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.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 org.jeasy.random.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
-