Class LocalTimeRandomizer
java.lang.Object
org.jeasy.random.randomizers.time.LocalTimeRandomizer
- All Implemented Interfaces:
Randomizer<java.time.LocalTime>
A
Randomizer
that generates random LocalTime
.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLocalTimeRandomizer
.LocalTimeRandomizer
(long seed) Create a newLocalTimeRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionjava.time.LocalTime
Generate a random value for the given type.
-
Constructor Details
-
LocalTimeRandomizer
public LocalTimeRandomizer()Create a newLocalTimeRandomizer
. -
LocalTimeRandomizer
public LocalTimeRandomizer(long seed) Create a newLocalTimeRandomizer
.- Parameters:
seed
- initial seed
-
-
Method Details
-
getRandomValue
public java.time.LocalTime getRandomValue()Description copied from interface:Randomizer
Generate a random value for the given type.- Specified by:
getRandomValue
in interfaceRandomizer<java.time.LocalTime>
- Returns:
- a random value for the given type
-