Class AtomicLongRandomizer

  • All Implemented Interfaces:
    Randomizer<java.util.concurrent.atomic.AtomicLong>

    public class AtomicLongRandomizer
    extends java.lang.Object
    implements Randomizer<java.util.concurrent.atomic.AtomicLong>
    Generate a random AtomicLong.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Constructor Detail

      • AtomicLongRandomizer

        public AtomicLongRandomizer​(long seed)
        Create a new AtomicLongRandomizer.
        Parameters:
        seed - initial seed
    • Method Detail

      • getRandomValue

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