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