Class SkipRandomizer

java.lang.Object
org.jeasy.random.randomizers.misc.SkipRandomizer
All Implemented Interfaces:
Randomizer<Object>

public class SkipRandomizer extends Object implements Randomizer<Object>
A randomizer used to skip fields from being populated. This is an implementation of the Null Object Pattern
Author:
Mahmoud Ben Hassine ([email protected])
  • Constructor Details

    • SkipRandomizer

      public SkipRandomizer()
  • Method Details

    • getRandomValue

      public Object getRandomValue()
      Description copied from interface: Randomizer
      Generate a random value for the given type.
      Specified by:
      getRandomValue in interface Randomizer<Object>
      Returns:
      a random value for the given type