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