public class ZoneOffsetGenerator extends Generator<ZoneOffset>
ZoneOffset.| Constructor and Description |
|---|
ZoneOffsetGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
|
ZoneOffset |
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
ZoneOffsets with values of either ZoneOffset#MIN or
ZoneOffset#MAX as appropriate.
InRange.format() is ignored. ZoneOffsets are always parsed using their zone id.
range - annotation that gives the range's constraintsZoneOffset.of(String)public ZoneOffset generate(SourceOfRandomness random, GenerationStatus status)
generate in class Generator<ZoneOffset>Copyright © 2016. All rights reserved.