Class MapRandomizer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Map<K, V> getRandomValue() Generate a random value for the given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapRandomizer

        MapRandomizer(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer)
        Create a new MapRandomizer with a random number of entries.
        Parameters:
        keyRandomizer - the randomizer for keys
        valueRandomizer - the randomizer for values
      • MapRandomizer

        MapRandomizer(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer, int nbEntries)
        Create a new MapRandomizer with a fixed number of entries.
        Parameters:
        keyRandomizer - the randomizer for keys
        valueRandomizer - the randomizer for values
        nbEntries - the number of entries to generate
    • Method Detail

      • getRandomValue

         Map<K, V> getRandomValue()

        Generate a random value for the given type.

        Returns:

        a random value for the given type