Class SkipRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.misc.SkipRandomizer
-
- All Implemented Interfaces:
Randomizer<java.lang.Object>
public class SkipRandomizer extends java.lang.Object implements Randomizer<java.lang.Object>
A randomizer used to skip fields from being populated. This is an implementation of the Null Object Pattern- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description SkipRandomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetRandomValue()Generate a random value for the given type.
-
-
-
Method Detail
-
getRandomValue
public java.lang.Object getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Specified by:
getRandomValuein interfaceRandomizer<java.lang.Object>- Returns:
- a random value for the given type
-
-