Constructor and Description |
---|
ByteGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(InRange range)
Tells this generator to produce values within a specified minimum and/or
maximum, inclusive, with uniform distribution.
|
Byte |
generate(SourceOfRandomness random,
GenerationStatus status) |
protected Predicate<Byte> |
inRange() |
protected Byte |
leastMagnitude() |
protected Function<BigInteger,Byte> |
narrow() |
protected Byte |
negate(Byte target) |
protected boolean |
negative(Byte target) |
doShrink, widen
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public void configure(InRange range)
InRange.min()
and InRange.max()
take precedence over
InRange.minByte()
and InRange.maxByte()
, if non-empty.range
- annotation that gives the range's constraintspublic Byte generate(SourceOfRandomness random, GenerationStatus status)
protected Function<BigInteger,Byte> narrow()
narrow
in class IntegralGenerator<Byte>
protected Predicate<Byte> inRange()
inRange
in class IntegralGenerator<Byte>
protected Byte leastMagnitude()
leastMagnitude
in class IntegralGenerator<Byte>
protected boolean negative(Byte target)
negative
in class IntegralGenerator<Byte>
protected Byte negate(Byte target)
negate
in class IntegralGenerator<Byte>
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu