| Constructor and Description |
|---|
DateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
|
Date |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configure, hasComponents, numberOfNeededComponents, provideRepository, 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 millisecond.
If an endpoint of the range is not specified, the generator will use dates with milliseconds-since-the-epoch
values of either Integer.MIN_VALUE or Long.MAX_VALUE as appropriate.
InRange.format() describes how the generator is to
interpret the range's endpoints.
range - annotation that gives the range's constraintsIllegalArgumentException - if the range's values cannot be converted to Datepublic Date generate(SourceOfRandomness random, GenerationStatus status)
Copyright © 2015. All Rights Reserved.