Class ConstantRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class ConstantRandomizer<T> implements Randomizer<T>
A Randomizer that generates constant values. Yeah.. That's not random :-)
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description ConstantRandomizer(T value)
Create a new ConstantRandomizer.
-
Method Summary
Modifier and Type Method Description T
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
ConstantRandomizer
ConstantRandomizer(T value)
Create a new ConstantRandomizer.- Parameters:
value
- the constant value
-
-
Method Detail
-
getRandomValue
T getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-