Package org.jeasy.random.randomizers
Class GenericStringRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.FakerBasedRandomizer<String>
org.jeasy.random.randomizers.GenericStringRandomizer
- All Implemented Interfaces:
Randomizer<String>
A generic
Randomizer that generates random values from a list of words.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.FakerBasedRandomizer
fakerFields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionGenericStringRandomizer(String[] words) Create a newGenericStringRandomizer.GenericStringRandomizer(String[] words, long seed) Create a newGenericStringRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
GenericStringRandomizer
Create a newGenericStringRandomizer.- Parameters:
words- the list of words from which this randomizer will generate random values.
-
GenericStringRandomizer
Create a newGenericStringRandomizer.- Parameters:
words- the list of words from which this randomizer will generate random values.seed- the initial seed
-
-
Method Details
-
getRandomValue
-