public class InstantRandomizer extends Object implements Randomizer<java.time.Instant>
Randomizer
that generates random Instant
.Constructor and Description |
---|
InstantRandomizer()
Create a new
InstantRandomizer . |
InstantRandomizer(long seed)
Create a new
InstantRandomizer . |
Modifier and Type | Method and Description |
---|---|
static InstantRandomizer |
aNewInstantRandomizer()
Create a new
InstantRandomizer . |
static InstantRandomizer |
aNewInstantRandomizer(long seed)
Create a new
InstantRandomizer . |
java.time.Instant |
getRandomValue()
Generate a random value for the given type.
|
public InstantRandomizer()
InstantRandomizer
.public InstantRandomizer(long seed)
InstantRandomizer
.seed
- initial seedpublic static InstantRandomizer aNewInstantRandomizer()
InstantRandomizer
.InstantRandomizer
.public static InstantRandomizer aNewInstantRandomizer(long seed)
InstantRandomizer
.seed
- initial seedInstantRandomizer
.public java.time.Instant getRandomValue()
Randomizer
getRandomValue
in interface Randomizer<java.time.Instant>
Copyright © 2017. All Rights Reserved.