Class NanoSecondRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.time.NanoSecondRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Integer>
public class NanoSecondRandomizer extends java.lang.Object implements Randomizer<java.lang.Integer>
- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_NANO_SECONDstatic intMIN_NANO_SECOND
-
Constructor Summary
Constructors Constructor Description NanoSecondRandomizer()NanoSecondRandomizer(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetRandomValue()Generate a random value for the given type.
-
-
-
Field Detail
-
MIN_NANO_SECOND
public static final int MIN_NANO_SECOND
- See Also:
- Constant Field Values
-
MAX_NANO_SECOND
public static final int MAX_NANO_SECOND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRandomValue
public java.lang.Integer getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.lang.Integer>- Returns:
- a random value for the given type
-
-