Class QueueRandomizer

    • 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
      Queue<T> getRandomValue() Generate a random value for the given type.
      String toString()
      • Methods inherited from class java.lang.Object

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

      • QueueRandomizer

        QueueRandomizer(Randomizer<T> delegate)
        Create a new QueueRandomizer that will generate a queue with a random number of elements.
        Parameters:
        delegate - the delegate Randomizer used to generate elements
      • QueueRandomizer

        QueueRandomizer(Randomizer<T> delegate, int nbElements)
        Create a new QueueRandomizer that will generate a queue with a fixed number of elements.
        Parameters:
        delegate - The delegate Randomizer used to generate elements
        nbElements - The number of elements to generate