Package org.jeasy.random.randomizers
Class RegularExpressionRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.FakerBasedRandomizer<String>
org.jeasy.random.randomizers.RegularExpressionRandomizer
- All Implemented Interfaces:
Randomizer<String>
A
Randomizer that generates random strings matching a regular expression.-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.FakerBasedRandomizer
fakerFields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionRegularExpressionRandomizer(String regularExpression) Create a newRegularExpressionRandomizer.RegularExpressionRandomizer(String regularExpression, long seed) Create a newRegularExpressionRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
RegularExpressionRandomizer
Create a newRegularExpressionRandomizer.- Parameters:
regularExpression- the regular expression which strings generated by this randomizer will match.
-
RegularExpressionRandomizer
Create a newRegularExpressionRandomizer.- Parameters:
regularExpression- the regular expression which strings generated by this randomizer will match.seed- the initial seed
-
-
Method Details
-
getRandomValue
-