Package org.jeasy.random.randomizers
Class EmailRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.FakerBasedRandomizer<String>
org.jeasy.random.randomizers.EmailRandomizer
- All Implemented Interfaces:
Randomizer<String>
A
Randomizer that generates random emails.- 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
ConstructorsConstructorDescriptionCreate a newEmailRandomizer.EmailRandomizer(long seed) Create a newEmailRandomizer.EmailRandomizer(long seed, Locale locale) Create a newEmailRandomizer.EmailRandomizer(long seed, Locale locale, boolean safe) Create a newEmailRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
EmailRandomizer
public EmailRandomizer()Create a newEmailRandomizer. -
EmailRandomizer
public EmailRandomizer(long seed) Create a newEmailRandomizer.- Parameters:
seed- the initial seed
-
EmailRandomizer
Create a newEmailRandomizer.- Parameters:
seed- the initial seedlocale- the locale to use
-
EmailRandomizer
Create a newEmailRandomizer.- Parameters:
seed- the initial seedlocale- the locale to usesafe- true to generate safe emails (invalid domains), false otherwise
-
-
Method Details
-
getRandomValue
-