| Constructor and Description |
|---|
InstantGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
|
Instant |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, doShrink, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, typespublic void configure(InRange range)
Tells this generator to produce values within a specified minimum and/or maximum, inclusive, with uniform distribution, down to the nanosecond.
If an endpoint of the range is not specified, the generator will use
instants with values of either Instant.MIN or
Instant.MAX as appropriate.
InRange.format() is ignored. Instants are always
parsed using DateTimeFormatter.ISO_INSTANT.
range - annotation that gives the range's constraintspublic Instant generate(SourceOfRandomness random, GenerationStatus status)
Copyright © 2016. All rights reserved.