Class 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.Object getRandomValue()
      Generate a random value for the given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SkipRandomizer

        public SkipRandomizer()
    • Method Detail

      • getRandomValue

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