net.sf.qualitytest.blueprint.strategy.creation
Class RandomFloatValueCreationStrategy
java.lang.Object
net.sf.qualitytest.blueprint.strategy.creation.ValueCreationStrategy<Float>
net.sf.qualitytest.blueprint.strategy.creation.RandomFloatValueCreationStrategy
- All Implemented Interfaces:
- CreationStrategy<Float>
public class RandomFloatValueCreationStrategy
- extends ValueCreationStrategy<Float>
Strategy to create a random float value.
- Author:
- Dominik Seichter
Method Summary |
Float |
createValue(Class<?> expectedClass)
Create a new value which can be assigned to an attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomFloatValueCreationStrategy
public RandomFloatValueCreationStrategy()
createValue
public Float createValue(Class<?> expectedClass)
- Description copied from class:
ValueCreationStrategy
- Create a new value which can be assigned to an attribute.
- Specified by:
createValue
in class ValueCreationStrategy<Float>
- Parameters:
expectedClass
- which is requested.
- Returns:
- a new value
Copyright © 2012-2013. All Rights Reserved.