public class FloatPrimitiveStatement extends NumericalPrimitiveStatement<Float>
FloatPrimitiveStatement class.
AbstractStatement.Executervalueassertions, comment, logger, retval, tc| Constructor and Description |
|---|
FloatPrimitiveStatement(TestCase tc)
Constructor for FloatPrimitiveStatement.
|
FloatPrimitiveStatement(TestCase tc,
Float value)
Constructor for FloatPrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrement()
Decrease value by smallest possible increment
|
void |
delta()
Add a random delta to the value
|
void |
increment()
Increase value by smallest possible increment
|
void |
increment(double delta)
Change value by delta
|
void |
increment(long delta)
Change value by delta
|
boolean |
isPositive()
Is the value >= 0?
|
void |
negate()
negate
|
void |
randomize()
Set to a random value
|
void |
setMid(Float min,
Float max)
Needed for binary search
|
void |
zero()
Reset value to default value 0
|
changeClassLoader, copy, equals, execute, getAccessibleObject, getPrimitiveStatement, getPrimitiveStatement, getRandomStatement, getUniqueVariableReferences, getValue, getVariableReferences, hashCode, hasMoreThanOneValue, isAssignmentStatement, mutate, replace, same, setValue, toStringaddAssertion, addComment, clone, clone, copyAssertions, exceptionHandler, getAssertionCode, getAssertionReferences, getAssertions, getCode, getCode, getComment, getDeclaredExceptions, getExceptionClass, getNumParameters, getPosition, getReturnClass, getReturnType, getReturnValue, getTestCase, hasAssertions, isAccessible, isDeclaredException, isReflectionStatement, isValid, references, removeAssertion, removeAssertions, setAssertions, setRetvalpublic FloatPrimitiveStatement(TestCase tc, Float value)
Constructor for FloatPrimitiveStatement.
public void zero()
zero in class PrimitiveStatement<Float>public void delta()
delta in class PrimitiveStatement<Float>public void increment(long delta)
increment in class NumericalPrimitiveStatement<Float>delta - a long.public void increment(double delta)
increment in class NumericalPrimitiveStatement<Float>delta - a double.public void randomize()
randomize in class PrimitiveStatement<Float>public void increment()
increment in class NumericalPrimitiveStatement<Float>public void setMid(Float min, Float max)
setMid in class NumericalPrimitiveStatement<Float>min - a T object.max - a T object.public void decrement()
decrement in class NumericalPrimitiveStatement<Float>public boolean isPositive()
isPositive in class NumericalPrimitiveStatement<Float>public void negate()
negate
negate in class AbstractStatementCopyright © 2010–2017 EvoSuite. All rights reserved.