Class ConstantRandomizer<T>
- java.lang.Object
-
- org.jeasy.random.randomizers.misc.ConstantRandomizer<T>
-
- All Implemented Interfaces:
Randomizer<T>
public class ConstantRandomizer<T> extends java.lang.Object implements Randomizer<T>
ARandomizerthat generates constant values. Yeah.. That's not random :-)- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description ConstantRandomizer(T value)Create a newConstantRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetRandomValue()Generate a random value for the given type.
-
-
-
Constructor Detail
-
ConstantRandomizer
public ConstantRandomizer(T value)
Create a newConstantRandomizer.- Parameters:
value- the constant value
-
-
Method Detail
-
getRandomValue
public T getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<T>- Returns:
- a random value for the given type
-
-