public class ByteGenerator extends IntegralGenerator<Byte>
byte or Byte.| 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, widenaddComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, typespublic 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 © 2016. All rights reserved.