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