Class LocalTimeRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<LocalTime>
org.jeasy.random.randomizers.range.LocalTimeRangeRandomizer
- All Implemented Interfaces:
Randomizer<LocalTime>
Generate a random
LocalTime
in the given range.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionLocalTimeRangeRandomizer
(LocalTime min, LocalTime max) Create a newLocalTimeRangeRandomizer
.LocalTimeRangeRandomizer
(LocalTime min, LocalTime max, long seed) Create a newLocalTimeRangeRandomizer
. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
LocalTimeRangeRandomizer
Create a newLocalTimeRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
LocalTimeRangeRandomizer
Create a newLocalTimeRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValues
in classAbstractRangeRandomizer<LocalTime>
-
getDefaultMinValue
- Specified by:
getDefaultMinValue
in classAbstractRangeRandomizer<LocalTime>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValue
in classAbstractRangeRandomizer<LocalTime>
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-