| Constructor and Description |
|---|
PeriodGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
|
Period |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, doShrink, gen, gen, hasComponents, magnitude, narrow, numberOfNeededComponents, provide, 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
Periods with values of either Period(Year#MIN_VALUE, -12, -31)
or Period(Year#MAX_VALUE, 12, 31) as appropriate.
InRange.format() is ignored. Periods are always parsed
using formats based on the ISO-8601 period formats PnYnMnD and
PnW.
range - annotation that gives the range's constraintsPeriod.parse(CharSequence)public Period generate(SourceOfRandomness random, GenerationStatus status)
© Copyright 2010-2020 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu