Class LocalTimeRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<java.time.LocalTime>
org.jeasy.random.randomizers.range.LocalTimeRangeRandomizer
- All Implemented Interfaces:
Randomizer<java.time.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
(java.time.LocalTime min, java.time.LocalTime max) Create a newLocalTimeRangeRandomizer
.LocalTimeRangeRandomizer
(java.time.LocalTime min, java.time.LocalTime max, long seed) Create a newLocalTimeRangeRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected java.time.LocalTime
protected java.time.LocalTime
java.time.LocalTime
Generate a random value for the given type.Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
LocalTimeRangeRandomizer
public LocalTimeRangeRandomizer(java.time.LocalTime min, java.time.LocalTime max) Create a newLocalTimeRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
LocalTimeRangeRandomizer
public LocalTimeRangeRandomizer(java.time.LocalTime min, java.time.LocalTime max, long seed) 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<java.time.LocalTime>
-
getDefaultMinValue
protected java.time.LocalTime getDefaultMinValue()- Specified by:
getDefaultMinValue
in classAbstractRangeRandomizer<java.time.LocalTime>
-
getDefaultMaxValue
protected java.time.LocalTime getDefaultMaxValue()- Specified by:
getDefaultMaxValue
in classAbstractRangeRandomizer<java.time.LocalTime>
-
getRandomValue
public java.time.LocalTime getRandomValue()Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-