Class LongRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.lang.Long>
-
- org.jeasy.random.randomizers.number.LongRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Long>
public class LongRandomizer extends AbstractRandomizer<java.lang.Long>
Generate a randomLong.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description LongRandomizer()Create a newLongRandomizer.LongRandomizer(long seed)Create a newLongRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
LongRandomizer
public LongRandomizer()
Create a newLongRandomizer.
-
LongRandomizer
public LongRandomizer(long seed)
Create a newLongRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.lang.Long getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-