Class LocaleRandomizer

java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<Locale>
org.jeasy.random.randomizers.misc.LocaleRandomizer
All Implemented Interfaces:
Randomizer<Locale>

public class LocaleRandomizer extends AbstractRandomizer<Locale>
Generate a random Locale.
Author:
Pascal Schumacher (https://github.com/PascalSchumacher)
  • Constructor Details

    • LocaleRandomizer

      public LocaleRandomizer()
      Create a new LocaleRandomizer.
    • LocaleRandomizer

      public LocaleRandomizer(long seed)
      Create a new LocaleRandomizer.
      Parameters:
      seed - initial seed
  • Method Details

    • getRandomValue

      public Locale getRandomValue()
      Description copied from interface: Randomizer
      Generate a random value for the given type.
      Returns:
      a random value for the given type