Class ZonedDateTimeRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.time.ZonedDateTime>
-
- org.jeasy.random.randomizers.time.ZonedDateTimeRandomizer
-
- All Implemented Interfaces:
Randomizer<java.time.ZonedDateTime>
public class ZonedDateTimeRandomizer extends AbstractRandomizer<java.time.ZonedDateTime>
ARandomizerthat generates randomZonedDateTime.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeRandomizer()Create a newZonedDateTimeRandomizer.ZonedDateTimeRandomizer(long seed)Create a newZonedDateTimeRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZonedDateTimegetRandomValue()Generate a random value for the given type.voidsetLocalDateTimeRandomizer(LocalDateTimeRandomizer localDateTimeRandomizer)-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
ZonedDateTimeRandomizer
public ZonedDateTimeRandomizer()
Create a newZonedDateTimeRandomizer.
-
ZonedDateTimeRandomizer
public ZonedDateTimeRandomizer(long seed)
Create a newZonedDateTimeRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.time.ZonedDateTime getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
setLocalDateTimeRandomizer
public void setLocalDateTimeRandomizer(LocalDateTimeRandomizer localDateTimeRandomizer)
-
-