| Constructor and Description |
|---|
YearGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
|
Year |
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.
If an endpoint of the range is not specified, the generator will use
Years with values of either Year#MIN_VALUE or
Year#MAX_VALUE as appropriate.
InRange.format() describes
how the generator is to
interpret the range's endpoints.
range - annotation that gives the range's constraintspublic Year generate(SourceOfRandomness random, GenerationStatus status)
Copyright © 2016. All rights reserved.