public class ConstantRandomizer<T> extends Object implements Randomizer<T>
Randomizer that generates constant values. Yeah.. That's not random :-)| Constructor and Description |
|---|
ConstantRandomizer(T value)
Create a new
ConstantRandomizer. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ConstantRandomizer<T> |
aNewConstantRandomizer(T value)
Create a new
ConstantRandomizer. |
T |
getRandomValue()
Generate a random value for the given type.
|
public ConstantRandomizer(T value)
ConstantRandomizer.value - the constant valuepublic static <T> ConstantRandomizer<T> aNewConstantRandomizer(T value)
ConstantRandomizer.T - the type of generated elementsvalue - the constant valueConstantRandomizer.public T getRandomValue()
RandomizergetRandomValue in interface Randomizer<T>Copyright © 2017. All Rights Reserved.