Class RegularExpressionRandomizer

All Implemented Interfaces:
Randomizer<String>

public class RegularExpressionRandomizer extends FakerBasedRandomizer<String>
A Randomizer that generates random strings matching a regular expression.
  • Constructor Details

    • RegularExpressionRandomizer

      public RegularExpressionRandomizer(String regularExpression)
      Parameters:
      regularExpression - the regular expression which strings generated by this randomizer will match.
    • RegularExpressionRandomizer

      public RegularExpressionRandomizer(String regularExpression, long seed)
      Parameters:
      regularExpression - the regular expression which strings generated by this randomizer will match.
      seed - the initial seed
  • Method Details

    • getRandomValue

      public String getRandomValue()