Class AtomicLongRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.number.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 randomAtomicLong.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description AtomicLongRandomizer()Create a newAtomicLongRandomizer.AtomicLongRandomizer(long seed)Create a newAtomicLongRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.atomic.AtomicLonggetRandomValue()Generate a random value for the given type.
-
-
-
Constructor Detail
-
AtomicLongRandomizer
public AtomicLongRandomizer()
Create a newAtomicLongRandomizer.
-
AtomicLongRandomizer
public AtomicLongRandomizer(long seed)
Create a newAtomicLongRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.util.concurrent.atomic.AtomicLong getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.util.concurrent.atomic.AtomicLong>- Returns:
- a random value for the given type
-
-