Class ConstantRandomizer<T>
java.lang.Object
org.jeasy.random.randomizers.misc.ConstantRandomizer<T>
- All Implemented Interfaces:
Randomizer<T>
A
Randomizer
that generates constant values. Yeah.. That's not random :-)- Author:
- Mahmoud Ben Hassine ([email protected])
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConstantRandomizer
Create a newConstantRandomizer
.- Parameters:
value
- the constant value
-
-
Method Details
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Specified by:
getRandomValue
in interfaceRandomizer<T>
- Returns:
- a random value for the given type
-