T
- type of values this generator producespublic abstract class IntegralGenerator<T extends Number> extends Generator<T>
int
and
BigInteger
.Modifier | Constructor and Description |
---|---|
protected |
IntegralGenerator(Class<T> type) |
protected |
IntegralGenerator(List<Class<T>> types) |
Modifier and Type | Method and Description |
---|---|
List<T> |
doShrink(SourceOfRandomness random,
T larger) |
protected abstract Predicate<T> |
inRange() |
protected abstract T |
leastMagnitude() |
protected abstract Function<BigInteger,T> |
narrow() |
protected abstract T |
negate(T target) |
protected abstract boolean |
negative(T target) |
protected Function<T,BigInteger> |
widen() |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public List<T> doShrink(SourceOfRandomness random, T larger)
protected Function<T,BigInteger> widen()
protected abstract Function<BigInteger,T> narrow()
protected abstract T leastMagnitude()
protected abstract boolean negative(T target)
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu