@ThreadSafe public final class RandomDataProviderStrategyImpl extends AbstractRandomDataProviderStrategy
DataProviderStrategy
This default implementation returns values based on a random generator. Don't use this implementation if you seek deterministic values
All values returned by this implementation are different from zero.
This implementation is a Singleton
DataProviderStrategy.OrderMAX_DEPTH| Constructor and Description |
|---|
RandomDataProviderStrategyImpl()
Implementation of the Singleton pattern
|
| Modifier and Type | Method and Description |
|---|---|
static RandomDataProviderStrategyImpl |
getInstance(int nbrCollectionElements)
Other factory method which assigns a default number of collection
elements before returning the singleton.
|
addOrReplaceAttributeStrategy, addOrReplaceSpecific, cacheMemoizedObject, clearMemoizationCache, getBoolean, getByte, getByteInRange, getCharacter, getCharacterInRange, getConstructorHeavyComparator, getConstructorLightComparator, getDouble, getDoubleInRange, getFloat, getFloatInRange, getInteger, getIntegerInRange, getLong, getLongInRange, getMaxDepth, getMemoizedObject, getMethodHeavyComparator, getMethodLightComparator, getNumberOfCollectionElements, getShort, getShortInRange, getSpecificClass, getStrategyForAnnotation, getStringOfLength, getStringValue, isMemoizationEnabled, removeAttributeStrategy, removeSpecific, setConstructorHeavyComparator, setConstructorLightComparator, setDefaultNumberOfCollectionElements, setMemoization, setMethodHeavyComparator, setMethodLightComparator, sort, sortpublic RandomDataProviderStrategyImpl()
public static RandomDataProviderStrategyImpl getInstance(int nbrCollectionElements)
nbrCollectionElements - The number of collection elementsCopyright © 2015. All rights reserved.