public final class RandomDataProviderStrategy 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
| Modifier and Type | Field and Description |
|---|---|
private static RandomDataProviderStrategy |
SINGLETON
The singleton instance of this implementation
|
DEFAULT_NBR_COLLECTION_ELEMENTS, MAX_DEPTH, NICE_ASCII_CHARACTERS| Modifier | Constructor and Description |
|---|---|
private |
RandomDataProviderStrategy()
Implementation of the Singleton pattern
|
| Modifier and Type | Method and Description |
|---|---|
static RandomDataProviderStrategy |
getInstance()
Implementation of the Singleton pattern
|
static RandomDataProviderStrategy |
getInstance(int nbrCollectionElements)
Other factory method which assigns a default number of collection
elements before returning the singleton.
|
addExcludedAnnotation, addSpecific, getBoolean, getByte, getByteInRange, getCharacter, getCharacterInRange, getDouble, getDoubleInRange, getExcludedAnnotations, getFloat, getFloatInRange, getInteger, getIntegerInRange, getLong, getLongInRange, getMaxDepth, getNumberOfCollectionElements, getShort, getShortInRange, getSpecificClass, getStringOfLength, getStringValue, isMemoizationEnabled, removeExcludedAnnotation, removeSpecific, setMaxDepth, setMemoizationEnabled, setNumberOfCollectionElements, sort, sortprivate static final RandomDataProviderStrategy SINGLETON
private RandomDataProviderStrategy()
public static RandomDataProviderStrategy getInstance()
public static RandomDataProviderStrategy getInstance(int nbrCollectionElements)
nbrCollectionElements - The number of collection elementsCopyright © 2015. All rights reserved.