Class BooleanRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.lang.Boolean>
-
- org.jeasy.random.randomizers.misc.BooleanRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Boolean>
public class BooleanRandomizer extends AbstractRandomizer<java.lang.Boolean>
Generate a randomBoolean.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description BooleanRandomizer()Create a newBooleanRandomizer.BooleanRandomizer(long seed)Create a newBooleanRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
BooleanRandomizer
public BooleanRandomizer()
Create a newBooleanRandomizer.
-
BooleanRandomizer
public BooleanRandomizer(long seed)
Create a newBooleanRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.lang.Boolean getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-