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 voidprotected LocalDateTimeprotected LocalDateTimeGenerate 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:
checkValuesin classAbstractRangeRandomizer<LocalDateTime>
-
getDefaultMinValue
- Specified by:
getDefaultMinValuein classAbstractRangeRandomizer<LocalDateTime>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValuein classAbstractRangeRandomizer<LocalDateTime>
-
getRandomValue
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-