Class ConstantRandomizer<T>

  • All Implemented Interfaces:
    Randomizer<T>

    public class ConstantRandomizer<T>
    extends java.lang.Object
    implements Randomizer<T>
    A Randomizer that generates constant values. Yeah.. That's not random :-)
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Constructor Detail

      • ConstantRandomizer

        public ConstantRandomizer​(T value)
        Create a new ConstantRandomizer.
        Parameters:
        value - the constant value
    • Method Detail

      • getRandomValue

        public T getRandomValue()
        Description copied from interface: Randomizer
        Generate a random value for the given type.
        Specified by:
        getRandomValue in interface Randomizer<T>
        Returns:
        a random value for the given type