Class AtomicIntegerRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.number.AtomicIntegerRandomizer
-
- All Implemented Interfaces:
Randomizer<java.util.concurrent.atomic.AtomicInteger>
public class AtomicIntegerRandomizer extends java.lang.Object implements Randomizer<java.util.concurrent.atomic.AtomicInteger>
Generate a randomAtomicInteger.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description AtomicIntegerRandomizer()Create a newAtomicIntegerRandomizer.AtomicIntegerRandomizer(long seed)Create a newAtomicIntegerRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.atomic.AtomicIntegergetRandomValue()Generate a random value for the given type.
-
-
-
Constructor Detail
-
AtomicIntegerRandomizer
public AtomicIntegerRandomizer()
Create a newAtomicIntegerRandomizer.
-
AtomicIntegerRandomizer
public AtomicIntegerRandomizer(long seed)
Create a newAtomicIntegerRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.util.concurrent.atomic.AtomicInteger getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.util.concurrent.atomic.AtomicInteger>- Returns:
- a random value for the given type
-
-