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