public class OptionalDoubleGenerator extends Generator<OptionalDouble>
OptionalDouble.| Constructor and Description |
|---|
OptionalDoubleGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InRange range)
Tells this generator to produce values, when
present, within a specified minimum
(inclusive) and/or maximum (exclusive) with uniform distribution. |
List<OptionalDouble> |
doShrink(SourceOfRandomness random,
OptionalDouble larger) |
OptionalDouble |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, typespublic void configure(InRange range)
present, within a specified minimum
(inclusive) and/or maximum (exclusive) with uniform distribution.
InRange.min() and InRange.max() take precedence over
InRange.minDouble() and InRange.maxDouble(),
if non-empty.range - annotation that gives the range's constraintspublic OptionalDouble generate(SourceOfRandomness random, GenerationStatus status)
generate in class Generator<OptionalDouble>public List<OptionalDouble> doShrink(SourceOfRandomness random, OptionalDouble larger)
doShrink in class Generator<OptionalDouble>Copyright © 2016. All rights reserved.