Class LocalTimeRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.time.LocalTimeRandomizer
-
- All Implemented Interfaces:
Randomizer<java.time.LocalTime>
public class LocalTimeRandomizer extends java.lang.Object implements Randomizer<java.time.LocalTime>
ARandomizerthat generates randomLocalTime.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description LocalTimeRandomizer()Create a newLocalTimeRandomizer.LocalTimeRandomizer(long seed)Create a newLocalTimeRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalTimegetRandomValue()Generate a random value for the given type.
-
-
-
Constructor Detail
-
LocalTimeRandomizer
public LocalTimeRandomizer()
Create a newLocalTimeRandomizer.
-
LocalTimeRandomizer
public LocalTimeRandomizer(long seed)
Create a newLocalTimeRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.time.LocalTime getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.time.LocalTime>- Returns:
- a random value for the given type
-
-