Class LocaleRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<Locale>
org.jeasy.random.randomizers.misc.LocaleRandomizer
- All Implemented Interfaces:
Randomizer<Locale>
Generate a random
Locale
.- Author:
- Pascal Schumacher (https://github.com/PascalSchumacher)
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLocaleRandomizer
.LocaleRandomizer
(long seed) Create a newLocaleRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a random value for the given type.Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
LocaleRandomizer
public LocaleRandomizer()Create a newLocaleRandomizer
. -
LocaleRandomizer
public LocaleRandomizer(long seed) Create a newLocaleRandomizer
.- Parameters:
seed
- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-