Constructor and Description |
---|
YearMonthGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(InRange range)
|
YearMonth |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, doShrink, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public 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
dates with values of either YearMonth(Year#MIN_VALUE, 1)
or
YearMonth(Year#MAX_VALUE, 12)
as appropriate.
InRange.format()
describes
how the generator is to
interpret the range's endpoints.
range
- annotation that gives the range's constraintspublic YearMonth generate(SourceOfRandomness random, GenerationStatus status)
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu