Class ZonedDateTimeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<ZonedDateTime>
org.jeasy.random.randomizers.time.ZonedDateTimeRandomizer
- All Implemented Interfaces:
Randomizer<ZonedDateTime>
A
Randomizer that generates random ZonedDateTime.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newZonedDateTimeRandomizer.ZonedDateTimeRandomizer(long seed) Create a newZonedDateTimeRandomizer. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a random value for the given type.voidsetLocalDateTimeRandomizer(LocalDateTimeRandomizer localDateTimeRandomizer) Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
ZonedDateTimeRandomizer
public ZonedDateTimeRandomizer()Create a newZonedDateTimeRandomizer. -
ZonedDateTimeRandomizer
public ZonedDateTimeRandomizer(long seed) Create a newZonedDateTimeRandomizer.- Parameters:
seed- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
setLocalDateTimeRandomizer
-